Enum TwoDComponentType
Enum TwoDComponentType
ja nimityö: Aspose.BarCode.Generation Kokoelma: Aspose.BarCode.dll (25.4.0)
2D-komponentin tyyppi
public enum TwoDComponentType
Fields
Auto = 0
Automaattisesti valittu 2D-komponentin tyyppi
CC_A = 1
CC-A tyyppi 2D komponentti. se on rakenteellinen variantti MicroPDF417
CC_B = 2
CC-B-tyyppi on 2D-komponentti. se on MicroPDF417 symboli.
CC_C = 3
CC-C-tyyppi on 2D-komponentti. se on PDF417 symboli.
Examples
Tämä näyte näyttää, miten luoda ja tallentaa GS1 Composite Bar -kuva.Huomaa, että 1D codetext ja 2D codetext erotetaan symbolilla ‘/’
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");
}