'Declaration
Public Overloads Function DrawBarcodeDataMatrix( _ ByVal Data As String, _ ByVal EncodingMode As BarcodeDataMatrixEncodingMode, _ ByVal Version As BarcodeDataMatrixVersion, _ ByVal ModuleSize As Integer, _ ByVal DstX As Single, _ ByVal DstY As Single, _ ByVal Cyan As Byte, _ ByVal Magenta As Byte, _ ByVal Yellow As Byte, _ ByVal Black As Byte _ ) As GdPictureStatus
public GdPictureStatus DrawBarcodeDataMatrix( string Data, BarcodeDataMatrixEncodingMode EncodingMode, BarcodeDataMatrixVersion Version, int ModuleSize, float DstX, float DstY, byte Cyan, byte Magenta, byte Yellow, byte Black )
public function DrawBarcodeDataMatrix( Data: String; EncodingMode: BarcodeDataMatrixEncodingMode; Version: BarcodeDataMatrixVersion; ModuleSize: Integer; DstX: Single; DstY: Single; Cyan: Byte; Magenta: Byte; Yellow: Byte; Black: Byte ): GdPictureStatus;
public function DrawBarcodeDataMatrix( Data : String, EncodingMode : BarcodeDataMatrixEncodingMode, Version : BarcodeDataMatrixVersion, ModuleSize : int, DstX : float, DstY : float, Cyan : byte, Magenta : byte, Yellow : byte, Black : byte ) : GdPictureStatus;
public: GdPictureStatus DrawBarcodeDataMatrix( string* Data, BarcodeDataMatrixEncodingMode EncodingMode, BarcodeDataMatrixVersion Version, int ModuleSize, float DstX, float DstY, byte Cyan, byte Magenta, byte Yellow, byte Black )
public: GdPictureStatus DrawBarcodeDataMatrix( String^ Data, BarcodeDataMatrixEncodingMode EncodingMode, BarcodeDataMatrixVersion Version, int ModuleSize, float DstX, float DstY, byte Cyan, byte Magenta, byte Yellow, byte Black )
Parameters
- Data
- The data to encode using the required barcode symbol.
- EncodingMode
- A member of the BarcodeDataMatrixEncodingMode enumeration. The DataMatrix barcode high level encoding mode.
- Version
- A member of the BarcodeDataMatrixVersion enumeration. The version of the DataMatrix barcode.
You can use the BarcodeDataMatrixVersion.BarcodeDataMatrixVersionAuto to let the engine decide the minimum version required to encode all specified data.
- ModuleSize
- The size of each module within the drawn symbol, in points.
The module is the smallest cell in the DataMatrix barcode. The module size has to be made out of at least 2×2 printed dots for bigger reliability, therefore the recommended value for this parameter is 4 and greater.
- DstX
- The horizontal (X) coordinate of the destination point, expressed in the current units specified by the SetMeasurementUnit method with respect to the defined origin, related to the currently selected page.
- DstY
- The vertical (Y) coordinate of the destination point, expressed in the current units specified by the SetMeasurementUnit method with respect to the defined origin, related to the currently selected page.
- Cyan
- The amount of cyan color to be used for the symbol's resulting color. Use the value between 0 and 255.
- Magenta
- The amount of magenta to be used for the symbol's resulting color. Use the value between 0 and 255.
- Yellow
- The amount of yellow to be used for the symbol's resulting color. Use the value between 0 and 255.
- Black
- The amount of black (key) color to be used for the symbol's resulting color. Use the value between 0 and 255.
Return Value
We strongly recommend always checking this status first.