Enum TwoDComponentType
Enum TwoDComponentType
ชื่อพื้นที่: Aspose.BarCode.Generation การประกอบ: Aspose.BarCode.dll (25.4.0)
ประเภทส่วนประกอบ 2D
public enum TwoDComponentType
Fields
Auto = 0
ชนิดที่เลือกโดยอัตโนมัติของส่วนประกอบ 2D
CC_A = 1
ชนิด CC-A ของส่วนประกอบ 2D เป็นตัวเลือกโครงสร้างของ MicroPDF417
CC_B = 2
ชนิด CC-B ของส่วนประกอบ 2D เป็นสัญลักษณ์ MicroPDF417
CC_C = 3
ชนิด CC-C ของส่วนประกอบ 2D เป็นสัญลักษณ์ PDF417
Examples
ตัวอย่างนี้แสดงให้เห็นวิธีการสร้างและบันทึกภาพของ GS1 Composite Barหมายเหตุว่า 1D codetext และ 2D codetext ถูกแยกโดยสัญลักษณ์ ‘/’
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");
}