Enum TwoDComponentType
Enum TwoDComponentType
Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.1.0)
Typ 2D komponenty
public enum TwoDComponentType
Pole
Auto = 0
Automaticky vybrat typ 2D komponenty
CC_A = 1
Typ 2D komponenty CC-A. Je to strukturální varianta MicroPDF417
CC_B = 2
Typ 2D komponenty CC-B. Je to symbol MicroPDF417.
CC_C = 3
Typ 2D komponenty CC-C. Je to symbol PDF417.
Příklady
Tento příklad ukazuje, jak vytvořit a uložit obraz GS1 Composite Bar.
Všimněte si, že 1D kódový text a 2D kódový text jsou odděleny 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;
// Poměr stran 2D komponenty
generator.Parameters.Barcode.Pdf417.AspectRatio = 3;
// X-dimenzionální rozměr 1D a 2D komponent
generator.Parameters.Barcode.XDimension.Pixels = 3;
// Výška 1D komponenty
generator.Parameters.Barcode.BarHeight.Pixels = 100;
generator.Save("test.png");
}