Generating Data Matrix barcode is so easy. Look at the following C# sample code.
using System; using System.Drawing; using System.Drawing.Imaging; using PQScan.BarcodeCreator; namespace DataMatrixGeneratorInCSharp { classProgram { staticvoid Main(string[] args) { //Create an instance of PQScan.BarcodeCreator.Barcode object. Barcode datamatrix = new Barcode(); //Set barcode date to encode datamatrix.Data = "pqScan123456789"; //Set barcode type datamatrix.BarType = BarCodeType.DataMatrix; //Set barcode image width datamatrix.Width = 300; //Set barcode image height datamatrix.Height = 300; //Set datamatrix shape mode: rectangle or square datamatrix.DataMatrixShape = SymbolShapeMode.Auto; //Set barcode image fore groud color datamatrix.BarcodeColor = Color.Black; //Set barcode image back ground color datamatrix.BackgroundColor = Color.White; //Set barcode image format datamatrix.PictureFormat = ImageFormat.Tiff; //Save barcode image to file datamatrix.CreateBarcode("datamatrix-csharp.tif"); } } }