Aspose.BarCode.Examples.CSharp.ManageBarCodeImages.BarcodeImageMargins.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_ManageBarCodesImages();

            // Instantiate barcode object and different properties
            BarCodeBuilder barCodeBuilder = new BarCodeBuilder("1234567890", EncodeTypes.Code128)
            {
                Margins = {Left = 0.5f, Right = 0f, Top = 0f, Bottom = 0f}
            };
            barCodeBuilder.Save(dataDir + "barcode-image-margins_out.jpeg", ImageFormat.Jpeg);
        }
    }
BarcodeImageMargins