←Select platform

ForeColor Property (IBarcodeWriteOptions)

Summary

Gets or sets the barcode foreground (bars or symbol) color used when writing barcodes.

Syntax

C#
VB
WinRT C#
C++
[CategoryAttribute("             Colors")] 
[DisplayNameAttribute("Fore color")] 
[DescriptionAttribute("Foreground (bar) color to use when writing the barcode")] 
Leadtools.RasterColor ForeColor {get; set;} 
<CategoryAttribute("              Colors")> 
<DisplayNameAttribute("Fore color")> 
<DescriptionAttribute("Foreground (bar) color to use when writing the barcode")> 
Property ForeColor As Leadtools.RasterColor 
[CategoryAttribute("             Colors")] 
[DisplayNameAttribute("Fore color")] 
[DescriptionAttribute("Foreground (bar) color to use when writing the barcode")] 
Leadtools.RasterColor ForeColor {get; set;} 
CategoryAttribute("              Colors") 
DisplayNameAttribute("Fore color") 
DescriptionAttribute("Foreground (bar) color to use when writing the barcode") 
 
get_ForeColor(); 
set_ForeColor(value); 
Object.defineProperty('ForeColor');  
[CategoryAttribute("             Colors")] 
[DisplayNameAttribute("Fore color")] 
[DescriptionAttribute("Foreground (bar) color to use when writing the barcode")] 
property Leadtools.RasterColor ForeColor { 
   Leadtools.RasterColor get(); 
   void set (    Leadtools.RasterColor ); 
} 

Property Value

A RasterColor that specifies the barcode foreground (bars or symbol) color when writing barcodes. Default value is "Black" (RGB of #000000).

Remarks

LEADTOOLS will use ForeColor and BackColor when drawing the new barcode to the image and no special processing is performed. Note that you can specify a transparent color for BackColor to "overlay" the barcode on top of the background of the image. This however, is not recommended.

Example

This example writes a UPC-A barcode to an image with specific colors.

 

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Barcode Assembly
Click or drag to resize