CVB.Net 15.0
Loading...
Searching...
No Matches
Interleaved2of5 Class Reference

Configuration for Interleaved2of5 codes. More...

Inherits ConfigBase< T >.

Public Member Functions

Interleaved2of5 SetMinimumLength (int length)
 Sets value for MinimumLength.
 
Interleaved2of5 SetMaximumLength (int length)
 Sets value for MaximumLength.
 
Interleaved2of5 SetChecksumEnabled (Checksum value)
 Configures checksum for decoding.
 
Interleaved2of5 SetRejectPartialEnabled (bool enable)
 Sets the reject partial enable flag.
 
- 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.
 
Checksum IsChecksumEnabled [get, set]
 Gets or sets configuration of checksum for decoding.
 
bool IsRejectPartialEnabled [get, set]
 Gets or sets a value indicating whether partial codes should be rejected.
 
- 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 Interleaved2of5 codes.


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

Member Function Documentation

◆ SetChecksumEnabled()

Interleaved2of5 SetChecksumEnabled ( Checksum value)

Configures checksum for decoding.

Parameters
valueValue for checksum configuration.
Returns

◆ SetMaximumLength()

Interleaved2of5 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()

Interleaved2of5 SetMinimumLength ( int length)

Sets value for MinimumLength.

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

◆ SetRejectPartialEnabled()

Interleaved2of5 SetRejectPartialEnabled ( bool enable)

Sets the reject partial enable flag.

Enables or disables the rejection of partial Interleaved 2 of 5 barcodes. When this feature is enabled, the decoder becomes less likely to mistakenly decode a damaged or truncated code, such as when part of the code is missing due to its position in the image.

Parameters
enableif set to true partial codes are rejected.
Returns

Property Documentation

◆ IsRejectPartialEnabled

bool IsRejectPartialEnabled
getset

Gets or sets a value indicating whether partial codes should be rejected.

true if rejection of partial codes is enabled; otherwise, false.