←Select platform

BackColor Property

Summary

Gets or sets the barcode background (spaces) color used when reading barcodes.

Syntax

C#
VB
Java
Objective-C
C++
public RasterColor BackColor { get; set; } 
Public Property BackColor As Leadtools.RasterColor 
@property (nonatomic, copy) LTRasterColor *backColor 
public RasterColor getBackColor() 
public void setBackColor(RasterColor value) 
             
public: 
property Leadtools.RasterColor BackColor { 
   Leadtools.RasterColor get(); 
   void set (    Leadtools.RasterColor ); 
} 

Property Value

A RasterColor that specifies the barcode background (spaces) color to use when searching for barcodes. The default value is "White" (RGB of #FFFFFF).

Remarks

If the input image is bitonal (B/W), then this value will not be used. The foreground color is always considered to be black (or the foreground color in the image palette) and the background color is always considered to be white (or the background color in the image palette).

When the input image is not bitonal, LEADTOOLS will perform an intensity detect operation on the image to convert it to black and white before searching for the barcodes and uses the value of ForeColor and BackColor as the high and low threshold.

Example

For an example, refer to ForeColor.

Requirements

Target Platforms

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

Leadtools.Barcode Assembly