Initialize WebAssembly library.
Syntax Parametersobject.InitLib(pszKey) Return Value long. Returns the HANDLE of barcode decoder. You should to save this value to use it in future. If returns NULL then SDK cannot be initialized.Remarks This method should be called before any else. To free the library you should to call FreeLib |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Release WebAssembly library.
Syntax Parametersobject.FreeLib(decHandle) Return Value integer. Returns the Error Code. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Decodes the RGBA encoded image.
Syntax Parametersobject.DecodeRGBA(decHandle, pRGBA, width, height) Return Value integer. Returns the Error Code. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Decodes the gray map.
Syntax Parametersobject.DecodeGraymap(decHandle, pImg, width, height) Return Value integer. Returns the Error Code.Remarks A gray map is a byte matrix. Each byte has the value from 0 to 255 and represents one image pixel. 0 means a black pixel, 255 means a white pixel. The matrix is passed to the DecodeGrayMap method as a one-dimensional array. The first upper line of the image is sent first, then comes the second line and so on. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Decodes the PGM (portable gray map) file.
Syntax Parametersobject.DecodePGM(decHandle, pImg, width, height) Return Value integer. Returns the Error Code. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sets the various properties of Barcode Decoder.
Syntax Parametersobject.setProperty(decHandle, pszPropName, pData) Return Value integer. Returns the Error Code. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Gets the number of decoded barcodes.
Syntax Parametersobject.getResNum(decHandle) Return Value integer. If less than 0 then it returns the Error Code, else the barcode number. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Gets the barcode type.
Syntax Parametersobject.getResBarcodeType(decHandle, barcodeNum) Return Value integer. If less than 0 then it returns the Error Code, else the barcode type. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Gets the decoding quality.
Syntax Parametersobject.getResDQ(decHandle, barcodeNum) Return Value integer. If less than 0 then it returns the Error Code, else the decoding quality (0...100). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Gets the barcode data.
Syntax Parametersobject.getResData(decHandle, pOutBuf, bufLen, barcodeNum) Return Value integer. If less than 0 then it returns the Error Code, else the barcode data. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Gets the barcode corners coordinates.
Syntax Parametersobject.getResPoints(decHandle, pOutBuf, bufLen, barcodeNum) Return Value integer. Returns the Error Code.Remarks Method copies in the pOutBuf 8 integer (32 bit) values. 0 value - x1 coordinate, 1 value - y1 coordinate, 2 value - x2 coordinate, 3 value - y2 coordinate, etc. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Web SDK Assembly
Barcode Decoder WebAssembly (datasymbol-sdk.wasm file) provides the low level interface.
You can write your own JavaScript code (instead our DSScanner) that works
directly with WebAssembly.