Configuration for Code128 barcodes. More...
Inherits ConfigBase< T >.
Public Types | |
enum | Enhancement { None , Method1 , Method2 , All } |
Enum class for configuring enhancement method. More... | |
Public Member Functions | |
Code128 | SetMinimumLength (int length) |
Sets value for MinimumLength. | |
Code128 | SetMaximumLength (int length) |
Sets value for MaximumLength. | |
Code128 | SetEnhancementMethod (Enhancement method) |
Configures enhancement method for decoding. | |
![]() | |
T | SetEnabled (bool enabled) |
Sets value for IsEnabled. | |
Properties | |
int | MinimumLength [get, set] |
Minimum data length. | |
int | MaximumLength [get, set] |
Maximum data length. | |
Enhancement | EnhancementMethod [get, set] |
Enhancement method. | |
![]() | |
virtual bool | IsEnabled [get, set] |
The enabled state of this symbology. | |
Decoder | Decoder [get] |
Decoder this config belongs to. | |
Configuration for Code128 barcodes.
For additional details on configuration including a code example, refer to the GetConfig<T>()
method in the Decoder class.
enum Enhancement |
Enum class for configuring enhancement method.
Enumerator | |
---|---|
None | Disable enhancement. See function SetEnhancementMethod() for details. |
Method1 | Enable enhancement method 1. |
Method2 | Enable enhancement method 2. |
All | Enable both, enhancement method 1 and 2. |
Code128 SetEnhancementMethod | ( | Enhancement | method | ) |
Configures enhancement method for decoding.
Allows enabling or disabling specific enhancement methods required for decoding. When enabled, these methods improve the ability to decode poorly printed Code 128 barcodes. By default, enhancement methods are disabled.
method | The method. |
Code128 SetMaximumLength | ( | int | length | ) |
Sets value for MaximumLength.
The default value is 0 for no checking.
length | Number of characters of the longest decoded string, (between 0 and 120). |
Code128 SetMinimumLength | ( | int | length | ) |
Sets value for MinimumLength.
length | Number of characters of the shortest decoded string. |