Aspose.BarCode.Examples.CSharp.ManageBarCodeImages.SetFrameOut.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 set CodeText & Barcode Symbology
            BarCodeBuilder barCodeBuilder = new BarCodeBuilder("00850006000227", EncodeTypes.ITF14)
            {
                // Set Different properties
                AutoSize = true,
                ITF14BorderType = ITF14BorderType.FrameOut,
                CodeTextFont = new Font("OCR B Std", 8.0f),
                GraphicsUnit = GraphicsUnit.Millimeter,
                xDimension = 0.495f,
                BarHeight = 12.7f,
                CodeTextSpace = 0.5f,
                Resolution = new Resolution(1200.0f, 1200.0f, ResolutionMode.Customized)
            };
            barCodeBuilder.Save(dataDir + "ITF14_Border_Type_FrameOut_out.png", BarCodeImageFormat.Png);
        }
    }
SetFrameOut