Aspose.BarCode.Examples.CSharp.CreateAndManageTwoDBarcodes.Create2DBarcodes.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_CreateAndManage2DBarCodes();

            // Instantiate barcode object and set CodeText & Barcode Symbology
            BarCodeBuilder barCodeBuilder = new BarCodeBuilder("this is some test code text. \n Second line \n third line.", EncodeTypes.Pdf417)
           {
               // Set width and height
               xDimension = 0.6f,
               yDimension = 1.2f
           };

            // Save the Barcode image
            barCodeBuilder.Save(dataDir + "2d-barcode_out.jpg", BarCodeImageFormat.Jpeg);
        }
    }
Create2DBarcodes