Here is C# example that shows how to create barcode with transparent background:
Code: Select all
public static System.Drawing.Bitmap GenerateBarcodeWithTransparentBackground(Vintasoft.Barcode.BarcodeType type, string value)
{
Vintasoft.Barcode.BarcodeWriter writer = new Vintasoft.Barcode.BarcodeWriter();
writer.Settings.Barcode = type;
writer.Settings.Value = value;
writer.Settings.PixelFormat = Vintasoft.Barcode.BarcodeImagePixelFormat.Bgra32;
writer.Settings.BackColor = System.Drawing.Color.Transparent;
return writer.GetBarcodeAsBitmap();
}