Exemple #1
0
        public byte[] GetDataMatrixAsPdf(BarcodeToolkit.BarcodeData data, int left, int top, int width, int height)
        {
            _tool.DataToEncode      = data;
            _tool.PDFDocumentWidth  = width;
            _tool.PDFDocumentHeight = height;

            return(_tool.GetPDFWithBarcode(top, left));
        }
Exemple #2
0
        public BarcodeInfo GetBarcode(BarcodeData encodeData)
        {
            Matrix matrix = new Matrix();

            int width = 144;

            BarcodeInfo result = new BarcodeInfo();



            result.ResultCode =
                CreateDataMatrix(ref matrix, ref width, encodeData.Name, encodeData.Address,
                                 encodeData.Post, encodeData.Amount, encodeData.Receiving, encodeData.Notes,
                                 encodeData.Additions, encodeData.Department);

            result.Width = width;
            result.Data  = matrix.matrix;

            return(result);
        }
Exemple #3
0
 public string GetDataMatrixAsHtml(BarcodeToolkit.BarcodeData data, int left, int top)
 {
     _tool.DataToEncode = data;
     return(_tool.GetHTMLWithBarcode(top, left));
 }
Exemple #4
0
 public byte[] GetDataMatrix(BarcodeToolkit.BarcodeData data, System.Drawing.Imaging.ImageFormat format)
 {
     _tool.DataToEncode = data;
     return(_tool.GetBarcode(format));
 }