Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
This article explains how to adjust color of barcode key elements in Aspose.BarCode for Python via .NET.
Barcode images have a black-and-white color scheme. To provide the possibility of modifying barcode colors, Aspose.BarCode for Python via .NET enables customizing system RGB colors for key barcode elements, including the following:
To manage the color of bars, the bar_color property of BarcodeParameters class needs to be used. By default, the bar color is set to Black.
The barcode image below has been generated with the bar color setting Color.Green.
Barcode background color can be modified through the back_color property of BaseGenerationParameters class. The default value of background color is White.
The barcode image with background color set to Color.Green is provided below.
The barcide library provides the possibility to customize the color of the main text label displayed on a barcode image. It can be done by calling the color property of class CodeTextParameters. The default setting of the main text color is Black. The sample barcode image shown below has been generated with the customized barcode text color setting (Color.Green).
Barcode images can be generated with top and bottom captions. Caption color can be customized using the text_color property of class CaptionParameters. Sample images below have been created with the color setting set to Color.Green.
Caption Color | |
---|---|
Barcode border color can be adjusted through the color property of class BorderParameters. The default border color is Black. The barcode image below has been generated with border color set to Color.Green.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.