public static void CreatQR(string url , string path) { //二维码,微信可用 BarCodeBuilder builder = new Aspose.BarCode.BarCodeBuilder(url, Symbology.QR); //hide code text builder.CodeLocation = CodeLocation.None; builder.RotationAngleF = 0; builder.Resolution = new Resolution(300, 300, ResolutionMode.Customized); builder.Save(path , BarCodeImageFormat.Png); }
public Form1(string token) { Aspose.BarCode.BarCodeBuilder Token = token; InitializeComponent(); StartPosition = FormStartPosition.CenterScreen; LoadDevice(); Read(); this.notifyIcon1.Text = this.Text; }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_ProgrammingBarCode(); string dst = dataDir + "QR.jpg"; Aspose.BarCode.BarCodeBuilder b; b = new Aspose.BarCode.BarCodeBuilder(); b.SymbologyType = Aspose.BarCode.Symbology.QR; b.CodeText = "1234567890"; b.Save(dst, BarCodeImageFormat.Bmp); Console.WriteLine(Environment.NewLine + "Barcode saved at " + dst); }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_ProgrammingBarCode(); string dst = dataDir + "datamatrix-barcode.jpg"; Aspose.BarCode.BarCodeBuilder b; b = new Aspose.BarCode.BarCodeBuilder(); b.SymbologyType = Aspose.BarCode.Symbology.DataMatrix; b.CodeText = "1234567890"; b.Save(dst, BarCodeImageFormat.Jpeg); Console.WriteLine(Environment.NewLine + "Barcode saved at " + dst); }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_ProgrammingBarCode(); string dst = dataDir + "QR-error-correction.jpg"; // Create instance of BarCodeBuilder, specify codetext and symbology in the constructor Aspose.BarCode.BarCodeBuilder builder; builder = new Aspose.BarCode.BarCodeBuilder(); builder.SymbologyType = Aspose.BarCode.Symbology.QR; builder.QRErrorLevel = QRErrorLevel.LevelH; builder.CodeText = "1234567890"; builder.Save(dst, BarCodeImageFormat.Jpeg); Console.WriteLine(Environment.NewLine + "Barcode saved at " + dst); }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_ProgrammingBarCode(); string dst = dataDir + "QR-rotate.jpg"; Aspose.BarCode.BarCodeBuilder b; b = new Aspose.BarCode.BarCodeBuilder(); b.SymbologyType = Aspose.BarCode.Symbology.QR; b.CodeText = "1234567890"; //hide code text b.CodeLocation = CodeLocation.None; b.RotationAngleF = 90; b.Save(dst, BarCodeImageFormat.Jpeg); Console.WriteLine(Environment.NewLine + "Barcode saved at " + dst); }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_ProgrammingBarCode(); string dst = dataDir + "2d-barcode.jpg"; Aspose.BarCode.BarCodeBuilder b; b = new Aspose.BarCode.BarCodeBuilder(); b.SymbologyType = Aspose.BarCode.Symbology.Pdf417; // width of each module b.xDimension = 0.6f; // height of each module b.yDimension = 1.2f; b.CodeText = "this is some test code text. \n Second line \n third line."; b.Save(dst, BarCodeImageFormat.Jpeg); Console.WriteLine(Environment.NewLine + "Barcode saved at " + dst); }