VintaSoft Barcode .NET SDK v10.0
InvertImageColors Property (ReaderSettings)




Vintasoft.Barcode Namespace > ReaderSettings Class : InvertImageColors Property
Gets or sets a value indicating whether the barcode reader inverts the image with barcodes before barcode search.
Syntax
'Declaration
 
<DefaultValueAttribute()>
<DescriptionAttribute("Barcode reader inverts the image with barcodes before barcode search.")>
Public Property InvertImageColors As Boolean
'Usage
 
Dim instance As ReaderSettings
Dim value As Boolean
 
instance.InvertImageColors = value
 
value = instance.InvertImageColors
[DefaultValue()]
[Description("Barcode reader inverts the image with barcodes before barcode search.")]
public bool InvertImageColors {get; set;}
[DefaultValue()]
[Description("Barcode reader inverts the image with barcodes before barcode search.")]
public: __property bool get_InvertImageColors();
public: __property void set_InvertImageColors( 
   bool value
);
[DefaultValue()]
[Description("Barcode reader inverts the image with barcodes before barcode search.")]
public:
property bool InvertImageColors {
   bool get();
   void set (    bool value);
}

Property Value

false - pixel with index 0 in color table will be interpreted as black pixel, pixel with index 1 in color table will be interpreted as white pixel,
true - pixel with index 0 in color table will be interpreted as white pixel, pixel with index 1 in color table will be interpreted as black pixel.
Default value is false.
Remarks
.NET Framework loads color table from some TIFF files uncorrectly and as a result images will be inverted. This property must be set to true for solving this problem and correct barcode reading.
Requirements

Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

See Also

Reference

ReaderSettings Class
ReaderSettings Members