Enum TwoDComponentType

Enum TwoDComponentType

Navne til: Aspose.BarCode.Generation Sammensætning: Aspose.BarCode.dll (25.4.0)

Typ af 2D komponent

public enum TwoDComponentType

Fields

Auto = 0

Automatisk valgt type 2D-komponent

CC_A = 1

CC-A type af 2D komponent. Det er en strukturel variant af MicroPDF417

CC_B = 2

CC-B type af 2D komponent. Det er et MicroPDF417 symbol.

CC_C = 3

CC-C type af 2D komponent. Det er en PDF417 symbol.

Examples

Denne prøve viser, hvordan man opretter og gemmer et GS1 Composite Bar billede.Bemærk, at 1D codetext og 2D codetext er adskilt af symbolet ‘/’

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