Enum TwoDComponentType
Enum TwoDComponentType
Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.1.0)
סוג רכיב 2D
public enum TwoDComponentType
שדות
Auto = 0
בחר אוטומטית סוג רכיב 2D
CC_A = 1
סוג רכיב 2D CC-A. זהו וריאנט מבני של MicroPDF417
CC_B = 2
סוג רכיב 2D CC-B. זהו סימן MicroPDF417.
CC_C = 3
סוג רכיב 2D CC-C. זהו סימן PDF417.
דוגמאות
דוגמה זו מראה כיצד ליצור ולשמור תמונת בר קוד GS1 Composite.
שימו לב כי טקסט הקוד 1D וטקסט הקוד 2D מופרדים על ידי הסימן ‘/’
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;
// יחס גובה לרוחב של רכיב 2D
generator.Parameters.Barcode.Pdf417.AspectRatio = 3;
// מימד X של רכיבי 1D ו-2D
generator.Parameters.Barcode.XDimension.Pixels = 3;
// גובה רכיב 1D
generator.Parameters.Barcode.BarHeight.Pixels = 100;
generator.Save("test.png");
}