Softek Software Barcode Reading Toolkits
HOME PRODUCTS DEVELOPERS STORE ABOUT US
Developer Home
Downloads
Sample Code
Support

Help -> Properties -> Overview

The Softek Barcode Reader SDK extracts barcode information from images and bitmaps.

Overview

The Photometric property determines how the toolkit interprets a pixel value in a bitmap. A photometric value of 0 means that a pixel value of 0 if considered to represent the color black. A photometric value of 1 means that a pixel value of 0 is considered to represent the color white. This property is only used in conjunction with the ScanBarcodeFromBitmap method. The ScanBarcodeFromDIB method does not refer to this property because the color map is stored within the DIB.

Default value =    0

Visual Basic using the OCX

[form.]SoftekBarcode.Photometric = value

Visual Basic using the DLL

Private Declare Function stGetPhotometric Lib "SoftekBarcode" () As Integer
Private Declare Function stSetPhotometric Lib "SoftekBarcode" (ByVal newValue As Integer) As Integer
stSetPhotometric (value)
value = stGetPhotometric ()

Visual Basic using COM

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

VB.Net using the DLL

Private Declare Function stGetPhotometric Lib "SoftekBarcode" () As Integer
Private Declare Function stSetPhotometric Lib "SoftekBarcode" (ByVal newValue As Integer) As Integer
stSetPhotometric (value)
value = stGetPhotometric ()

VB.Net using the SoftekBarcode Wrapper Class

Dim barcode As SoftekBarcode
..........
barcode.SetPhotometric(value)
value = barcode.GetPhotometric()

VB.Net using the SoftekBarcodeLib Managed Component

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

Visual C++ Using the OCX

BOOL GetPhotometric() ;
void SetPhotometric(BOOL value);

Visual C++ Using the DLL

BOOL __stdcall stGetPhotometric();
BOOL __stdcall stSetPhotometric(BOOL bNewValue);