VintaSoft Barcode .NET SDK 14.3: Documentation for .NET developer
Vintasoft.Barcode Namespace / ReaderSettings Class / InvertImageColors Property
Syntax Remarks Requirements SeeAlso
In This Topic
    InvertImageColors Property (ReaderSettings)
    In This Topic
    Gets or sets a value indicating whether the barcode reader inverts the image with barcodes before barcode search.
    Syntax
    'Declaration
    
    <DefaultValueAttribute(False)>
    <DescriptionAttribute("Barcode reader inverts the image with barcodes before barcode search.")>
    Public Property InvertImageColors As Boolean
    
    
    [DefaultValue(False)]
    [Description("Barcode reader inverts the image with barcodes before barcode search.")]
    public bool InvertImageColors { get; set; }
    
    
    [DefaultValue(False)]
    [Description("Barcode reader inverts the image with barcodes before barcode search.")]
    public: __property bool get_InvertImageColors();
    public: __property void set_InvertImageColors(
    bool value
    );
    [DefaultValue(False)]
    [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: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also