←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++
Leadtools.RasterColor ForeColor {get; set;} 
Property ForeColor As Leadtools.RasterColor 
Leadtools.RasterColor ForeColor {get; set;} 
<br/>get_ForeColor();<br/>set_ForeColor(value);<br/>Object.defineProperty('ForeColor');  
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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Barcode Assembly