Aspose.BarCode.Examples.CSharp.ManageBarCodes.SetQRErrorCorrection.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_ManageBarCodes();

            // Create instance of BarCodeBuilder, specify codetext and symbology in the constructor
            BarCodeBuilder builder = new BarCodeBuilder("1234567890", EncodeTypes.QR);

            // Set QRErrorLevel and Save the file to disk.  
            builder.QRErrorLevel = QRErrorLevel.LevelH;
            builder.Save(dataDir + "QR-error-correction_out.jpg", BarCodeImageFormat.Jpeg);
        }
    }
SetQRErrorCorrection