WriteDataMatrix

Description

This method writes a data matrix with the given parameters to a DIB. This method works for only 1, 8 and 24 bit per pixel images, where the color palette contains the black (RGB(0, 0, 0)) and white colours (RGB(255, 255, 255)). See the Data Matrix Properties above. If Structured Append Info is needed, enable Strucutred Append writing with the EnableStructuredAppend property, and set the relevant properties (FileID, DMTotalNum, DMIndex). Before calling, this method must be called by the SetBarcodeArrayLength method to allocate a ByteArray, where the encoded string will be written into. The encoded string can be loaded into ByteArray by the method SetBarcodeArrayElementAt.

Syntax RetVal = [BiBrDM] WriteDataMatrix hDIB StartX StartY

Returns               RetVal         LONGLONG            Handle to the newly created DIB, or 0 on error. See Data Matrix Error Codes above.

Remarks            hDIB             LONGLONG  Handle of the input DIB.

                            StartX          Short     Left/Top X coordinate of the Data Matrix to write.

                            StartY          Short     Left/Top Y coordinate of the Data Matrix to write.

See Also              SetBarcodeArrayLength, SetBarcodeArrayElementAt