CVB++ 14.0
ReaderConfigBase Class Reference

Configuration to access parameters of ReaderConfigBase. More...

#include <cvb/barcode/_detail/reader_config_base.hpp>

Inherits ConfigBase.

Inherited by Reader2DConfigBase, ReaderFourStateConfigBase, ReaderPlanetPostnetConfigBase, ReaderWithQuietzoneConfigBase, and PharmaCode.

Public Member Functions

void SetInverse (bool inverse)
 Code is inverted (white on black)/not inverted. More...
 
bool Inverse () const
 Returns whether the code is inverted (white on black) or not. More...
 

Detailed Description

Configuration to access parameters of ReaderConfigBase.

Member Function Documentation

◆ Inverse()

bool Inverse ( ) const
inline

Returns whether the code is inverted (white on black) or not.

Returns
The return flag. True specifies whether the barcode is present as a black on white image (inverse = false) or a white on black image (inverse = true).
Exceptions
Anyexception derived from std::exception including CvbException.
See also
SetInverse

◆ SetInverse()

void SetInverse ( bool  inverse)
inline

Code is inverted (white on black)/not inverted.

Parameters
[in]inverseTrue specifies whether the barcode is present as a black on white image (inverse = false) or a white on black image (inverse = true). Normally barcodes are printed dark on a bright background in which case the value false is passed. Under certain circumstances, the contrast ratio may be inverted. In such cases, you pass the value true.
Exceptions
Anyexception derived from std::exception including CvbException.
See also
Inverse