bardecode.com

  • Increase font size
  • Default font size
  • Decrease font size
Home Documentation ColorProcessingLevel - control time taken processing color images

ColorProcessingLevel - control time taken processing color images

Overview

The ColorProcessingLevel property controls the amount of processing time spent reading barcode values from color images. Values range from 0 to 5, with a default of 2. A low value will process color images faster but accuracy and read-rate levels will be lower than if a high value is used.

Please note that setting the ColorThreshold property to a non-zero value effectively sets ColorProcessingLevel to 0.

Default Value: 2

Visual Basic using the OCX

[form.]SoftekBarcode.ColorProcessingLevel = value

Visual Basic using the DLL

Private Declare Function stGetColorProcessingLevel Lib "SoftekBarcode" () As Boolean
Private Declare Function stSetColorProcessingLevel Lib "SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetColorProcessingLevel (value)
value = stGetColorProcessingLevel ()

Visual Basic using COM

oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ColorProcessingLevel = value
value = oBar.ColorProcessingLevel

VB.Net using the DLL

Private Declare Function stGetColorProcessingLevel Lib "SoftekBarcode" () As Boolean
Private Declare Function stSetColorProcessingLevel Lib "SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetColorProcessingLevel (value)
value = stGetColorProcessingLevel ()

VB.Net using the SoftekBarcode Wrapper Class

Dim barcode As SoftekBarcode
..........
barcode.SetColorProcessingLevel(value)
value = barcode.GetColorProcessingLevel()

VB.Net using the SoftekBarcodeLib Managed Component

Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ColorProcessingLevel = value
value = barcode.ColorProcessingLevel

Visual C++ Using the OCX

BOOL GetColorProcessingLevel() ;
void SetColorProcessingLevel(BOOL value);

Visual C++ Using the DLL

BOOL __stdcall stGetColorProcessingLevel();
BOOL __stdcall stSetColorProcessingLevel(BOOL bNewValue);