Enum TwoDComponentType

Enum TwoDComponentType

Nazwa przestrzeń: Aspose.BarCode.Generation Zgromadzenie: Aspose.BarCode.dll (25.4.0)

Typ składnika 2D

public enum TwoDComponentType

Fields

Auto = 0

Automatycznie wybrany typ składnika 2D

CC_A = 1

CC-A typ komponentu 2D. Jest to wariant strukturalny MicroPDF417

CC_B = 2

Typ CC-B jest elementem 2D. Jest to symbol MicroPDF417 .

CC_C = 3

Typ CC-C jest elementem 2D. Jest to symbol PDF417.

Examples

Ten próbek pokazuje, jak utworzyć i zaoszczędzić obraz kompozytowego paska GS1.Pamiętaj, że kodeks 1D i kodeks 2D są oddzielone symbolem ‘/’

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");
}
 Polski