Create a DataMatrix Barcode
DataMatrix is being used to encode product and serial number information on electrical rating plates; to mark of surgical instruments in Japan; to identify lenses, circuit boards, and other items during manufacturing. DataMatrix barcodes can store up to 2000 characters. Aspose.BarCode provides the most convenient way of producing a DataMatrix type of two-dimensional barcode.
How to produce a DataMatrix barcode
Instantiate a BarcodeGenerator and set its EncodeType to be DataMatrix, and set its CodeText property for the data you want to encode
Aspose.BarCode supports several types of encoding mode for DataMatrix, and the default value is set to Auto, indicating the encoder to choose the best encode mode. What is the best encode mode? The best encoding mode will likely produce the smallest picture under the same settings. What the encoder does is trying to encode two characters into one single byte. The following code example demonstrates how to use the encoding mode.
Custom Encoding Mode
Aspose.BarCode now supports the Custom encode mode for DataMatrix in order to support Encoding standards like UTF8. The following code snippet shows you how to use custom encoding mode.
Create C40 Encoded DataMatrix Barcode
Aspose.BarCode supports creating Datamatix barcodes with the C40 encoding scheme. The following code example demonstrates how simple it is to create a C40 encoded barcode.
Create Text Encoded DataMatrix Barcode
Aspose.BarCode supports creating Datamatix barcode with the Text encoding scheme. The following code example demonstrates how simple it is to create Text encoded barcode.