We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Barcode background color

If i want to change the background color of a barcode, can I set a color using hex color codes, like #ffffff??



Hello Dustin,

Thank you for inquiry.

The background color accepts Color class for setting colors e.g.

builder.BackColor = Color.LightGray;

But, you may also specify the color in RGB hex format like below:

builder.BackColor = System.Drawing.ColorTranslator.FromHtml("#FF0000");

For Java, you may use the Color.decode() method to specify the RGB color in hex format as below: