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
CC-Aタイプの2Dコンポーネント。MicroPDF417の構造的バリアントです。
CC_B = 2
CC-Bタイプの2Dコンポーネント。MicroPDF417シンボルです。
CC_C = 3
CC-Cタイプの2Dコンポーネント。PDF417シンボルです。
例
このサンプルは、GS1コンポジットバー画像を作成して保存する方法を示しています。
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;
// 1Dおよび2DコンポーネントのX次元
generator.Parameters.Barcode.XDimension.Pixels = 3;
// 1Dコンポーネントの高さ
generator.Parameters.Barcode.BarHeight.Pixels = 100;
generator.Save("test.png");
}