Hi,
I was working with aspose.barcode and i found a bug-or i made mistake with parameters. When you try to make barcode with transparent background, barcode dont give correct result.
Here is my code
BarCodeBuilder builder = new BarCodeBuilder(); builder.GraphicsUnit = GraphicsUnit.Pixel; builder.SymbologyType = Symbology.QR;
builder.CodeText = "1"; builder.CodeLocation = CodeLocation.None; builder.AutoSize = false; builder.BarHeight = 250; builder.ImageQuality = ImageQualityMode.Default; builder.CaptionAbove.Visible = false; builder.CaptionBelow.Visible = false; builder.BackColor = Color.Transparent; builder.QRErrorLevel = eBABarcodeGenerator.QRErrorLevel.LevelH; builder.QREncodeMode = eBABarcodeGenerator.QREncodeMode.Auto;Bitmap code = builder.GetCustomSizeBarCodeImage(new Size(250, 250), false); code.Save(@"c:\e39.png", System.Drawing.Imaging.ImageFormat.Png);return code;
If I use like this result is like 1.png.
If I change the BackgroundColor = Color.FromArgb(254, Color.White) result is like 2.png
If I change the BacgroundColor = Color.White-Or Color.FromArgb(255, anyColor)- result is like 3.png
But I want to create a barcode like 3.png but transparent. What can i do?