Enum TwoDComponentType

Enum TwoDComponentType

Tên không gian: Aspose.BarCode.Generation Tổng hợp: Aspose.BarCode.dll (25.4.0)

Loại thành phần 2D

public enum TwoDComponentType

Fields

Auto = 0

Tự động chọn loại thành phần 2D

CC_A = 1

Loại CC-A của thành phần 2D. Nó là một biến thể cấu trúc của MicroPDF417

CC_B = 2

Loại CC-B của thành phần 2D. Nó là biểu tượng MicroPDF417 .

CC_C = 3

Loại CC-C của thành phần 2D. Nó là biểu tượng PDF417 .

Examples

Mẫu này cho thấy làm thế nào để tạo và lưu một GS1 Composite Bar hình ảnh.Lưu ý rằng 1D codetext và 2D codetext được tách biệt bởi biểu tượng ‘/’

var codetext = "(01)03212345678906/(21)A1B2C3D4E5F6G7H8";
using (var generator = new BarcodeGenerator(EncodeTypes.GS1CompositeBar, codetext))
{
    generator.Parameters.Barcode.GS1CompositeBar.LinearComponentType = EncodeTypes.GS1Code128;
    generator.Parameters.Barcode.GS1CompositeBar.TwoDComponentType = TwoDComponentType.CC_A;

    // Aspect ratio of 2D component
    generator.Parameters.Barcode.Pdf417.AspectRatio = 3;

    // X-Dimension of 1D and 2D components
    generator.Parameters.Barcode.XDimension.Pixels = 3;

    // Height of 1D component
    generator.Parameters.Barcode.BarHeight.Pixels = 100;

    generator.Save("test.png");
}
 Tiếng Việt