Class ComplexBarcodeGenerator

Class ComplexBarcodeGenerator

Namespace: Aspose.BarCode.ComplexBarcode
Assembly: Aspose.BarCode.dll (25.1.0)

ComplexBarcodeGenerator để tạo hình ảnh mã vạch phức tạp (ví dụ: SwissQR) cho backend.

public sealed class ComplexBarcodeGenerator : IDisposable

Kế thừa

objectComplexBarcodeGenerator

Triển khai

IDisposable

Thành viên kế thừa

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Ví dụ

Mẫu này cho thấy cách tạo và lưu hình ảnh SwissQR.

  var swissQRCodetext = new SwissQRCodetext();
  swissQRCodetext.Bill.Account = "Tài khoản";
  swissQRCodetext.Bill.BillInformation = "Thông tin hóa đơn";
  // khởi tạo các trường còn lại
  using (var cg = new ComplexBarcodeGenerator(swissQRCodetext))
  {
    var res = cg.GenerateBarCodeImage();
  }

Hàm khởi tạo

ComplexBarcodeGenerator(IComplexCodetext)

Tạo một thể hiện của ComplexBarcodeGenerator.

public ComplexBarcodeGenerator(IComplexCodetext complexCodetext)

Tham số

complexCodetext IComplexCodetext

Mã văn bản phức tạp

Thuộc tính

Parameters

Các tham số tạo.

public BaseGenerationParameters Parameters { get; }

Giá trị thuộc tính

BaseGenerationParameters

Phương thức

Dispose()

public void Dispose()

GenerateBarCodeImage()

Tạo hình ảnh mã vạch phức tạp theo các thiết lập hiện tại.

public Bitmap GenerateBarCodeImage()

Trả về

Bitmap

Hình ảnh mã vạch. Xem System.Drawing.Bitmap.

Save(Stream, BarCodeImageFormat)

Tạo và lưu hình ảnh mã vạch phức tạp theo các thiết lập hiện tại.

public void Save(Stream stream, BarCodeImageFormat format)

Tham số

stream Stream

Luồng đầu ra System.IO.Stream.

format BarCodeImageFormat

Chỉ định định dạng tệp của hình ảnh đầu ra.

Save(string, BarCodeImageFormat)

Tạo và lưu hình ảnh mã vạch phức tạp theo các thiết lập hiện tại.

public void Save(string filename, BarCodeImageFormat format)

Tham số

filename string

Đường dẫn để lưu vào.

format BarCodeImageFormat

Chỉ định định dạng tệp của hình ảnh đầu ra.

Save(string)

Tạo và lưu hình ảnh mã vạch phức tạp theo các thiết lập hiện tại.

public void Save(string filename)

Tham số

filename string

Đường dẫn để lưu vào.

 Tiếng Việt