CVB.Net 15.0
Loading...
Searching...
No Matches

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.
 
- Public Member Functions inherited from ConfigBase< 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.
 
- Properties inherited from ConfigBase
virtual bool IsEnabled [get, set]
 The enabled state of this symbology.
 
Decoder Decoder [get]
 Decoder this config belongs to.
 

Detailed Description

Configuration for Code128 barcodes.

For additional details on configuration including a code example, refer to the GetConfig<T>() method in the Decoder class.

Member Enumeration Documentation

◆ 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.

Member Function Documentation

◆ SetEnhancementMethod()

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.

Parameters
methodThe method.
Returns

◆ SetMaximumLength()

Code128 SetMaximumLength ( int length)

Sets value for MaximumLength.

The default value is 0 for no checking.

Parameters
lengthNumber of characters of the longest decoded string, (between 0 and 120).
Returns
Configuration.

◆ SetMinimumLength()

Code128 SetMinimumLength ( int length)

Sets value for MinimumLength.

Parameters
lengthNumber of characters of the shortest decoded string.
Returns
Configuration.