示例#1
0
        private static void AddDataMatrixBarcode(VectorImage vectorImage, DataMatrixBarcode dataMatrixBarcode, DistanceUnit currentUnit)
        {
            DataMatrixBarcodeShape barcode = new DataMatrixBarcodeShape();

            barcode.Text = dataMatrixBarcode.Text;

            barcode.DataMatrixFormat = dataMatrixBarcode.DataMatrixFormat;
            barcode.DataMatrixSize   = dataMatrixBarcode.DataMatrixSize;

            barcode.Height      = dataMatrixBarcode.Height;
            barcode.InvertImage = dataMatrixBarcode.InvertImage;
            barcode.QuietZone   = dataMatrixBarcode.QuietZone;
            barcode.Height      = dataMatrixBarcode.Height;
            barcode.AutoExpand  = dataMatrixBarcode.AutoExpand;

            barcode.FlipHorizontally = dataMatrixBarcode.FlipHorizontally;
            barcode.FlipVertically   = dataMatrixBarcode.FlipVertically;
            barcode.MarkingOrder     = dataMatrixBarcode.MarkingOrder;

            barcode.Angle = dataMatrixBarcode.Angle;

            barcode.HatchPattern = dataMatrixBarcode.HatchPattern;
            barcode.Location     = dataMatrixBarcode.Location.Clone();
            vectorImage.AddBarcodeShape(barcode);
        }
示例#2
0
        private static void AddQRCodeBarcode(VectorImage vectorImage, QRCodeBarcode qrCodeBarcode, DistanceUnit currentUnit)
        {
            QRCodeBarcodeShape barcode = new QRCodeBarcodeShape();

            barcode.Text = qrCodeBarcode.Text;

            barcode.ErrorCorrectionLevel = qrCodeBarcode.ErrorCorrectionLevel;
            barcode.CodeSize             = qrCodeBarcode.CodeSize;
            barcode.EncodingMode         = qrCodeBarcode.EncodingMode;
            barcode.MaskPattern          = qrCodeBarcode.MaskPattern;

            barcode.Height      = qrCodeBarcode.Height;
            barcode.InvertImage = qrCodeBarcode.InvertImage;
            barcode.QuietZone   = qrCodeBarcode.QuietZone;
            barcode.Height      = qrCodeBarcode.Height;
            barcode.AutoExpand  = qrCodeBarcode.AutoExpand;

            barcode.FlipHorizontally = qrCodeBarcode.FlipHorizontally;
            barcode.FlipVertically   = qrCodeBarcode.FlipVertically;
            barcode.MarkingOrder     = qrCodeBarcode.MarkingOrder;

            barcode.Angle = qrCodeBarcode.Angle;

            barcode.HatchPattern = qrCodeBarcode.HatchPattern;
            barcode.Location     = qrCodeBarcode.Location.Clone();
            vectorImage.AddBarcodeShape(barcode);
        }
示例#3
0
        private static void AddLinearBarcode(VectorImage vectorImage, LinearBarcode linearBarcode, DistanceUnit currentUnit)
        {
            LinearBarcodeShape barcode = new LinearBarcodeShape();

            barcode.Text        = linearBarcode.Text;
            barcode.BarcodeType = linearBarcode.BarcodeType;

            barcode.Height           = linearBarcode.Height;
            barcode.InvertImage      = linearBarcode.InvertImage;
            barcode.QuietZone        = linearBarcode.QuietZone;
            barcode.Angle            = linearBarcode.Angle;
            barcode.PrintRatio       = linearBarcode.PrintRatio;
            barcode.Width            = linearBarcode.Width;
            barcode.FlipHorizontally = linearBarcode.FlipHorizontally;
            barcode.FlipVertically   = linearBarcode.FlipVertically;
            barcode.MarkingOrder     = linearBarcode.MarkingOrder;
            barcode.Angle            = linearBarcode.Angle;

            barcode.HatchPattern = linearBarcode.HatchPattern;

            barcode.Location = linearBarcode.Location.Clone();
            vectorImage.AddBarcodeShape(barcode);
        }