CipherLab 9400 Series User Manual page 53

Hide thumbs Also See for 9400 Series:
Table of Contents

Advertisement

ReadImage
Purpose
To capture an image without intercepting WM_DECODEIMAGE.
Syntax
int ReadImage (ref ArrayList buf,
Parameters
pbuf
[in][out] An ArrayList variable that stores the image contents.
capturedImgSize
[in][out] An integer variable that stores the size of a captured image.
Example for C#
int b1 = 0;
ArrayList buftmp = new ArrayList();
int capturedImgSize = 0;
b1 = Reader.ReaderEngineAPI.ReadImage(ref buftmp,ref capturedImgSize);
Example for VB
Dim buftmp As New ArrayList()
Dim capturedImgSize As Integer
Reader.ReaderEngineAPI.ReadImage(buftmp,capturedImgSize)
Return Value
If successful, it returns 1.
Otherwise, it returns 0.
Remarks
This function is provided for users who want to scan and retrieve data without
intercepting WM_DECODEIMAGE. For example, if users want to scan data by
clicking a GUI button, all they need to do is to invoke this function in the
clicking event handler function. The 2D scan engine must be initialized
successfully before calling this function.
See Also
ImageOptions_2D
ref int capturedImgSize);
Chapter 2
Reader API
45

Advertisement

Table of Contents
loading

Table of Contents