User's Manual

Table Of Contents
6 Scanner SupportChapter
225700 Series Color Mobile Computer User’s Manual
The dimensions of the resulting image can be calculated with this formula:
Resulting Width = Specified Width * Specified Resolution
Resulting Height = Specified Height * Specified Resolution
See Also
None.
IImage::ReadImage
Syntax
HRESULT IImage::Read( ITCFileFormat eFormat, DWORD nDepth,
ITC_IMAGE_SPEC *pImgBuffer, DWORD dwTimeout );
Parameters
eFormat [in] Format of the image buffer returned as follows.
Currently, only ITC_FILE_RAW is supported.
ITC_FILE_KIM = 0, // Returns data a KIM file
ITC_FILE_TIFF_BIN = 1, // TIFF Binary file
ITC_FILE_TIFF_BIN_GROUP4 = 2, // TIFF Binary Group 4 compressed
ITC_FILE_TIFF_GRAY_SCALE = 3, // TIFF Gray Scale
ITC_FILE_RAW = 4, // Raw image
ITC_FILE_JPEG = 5, // JPEG image
nDepth [in] Number of bits per pixel. Currently, only eight
(gray-scale) are supported.
pImgBuffer [in/out] Pointer to the buffer containing the image.
dwTimeout [in] Milliseconds to wait for the image to be returned.
Return Values
HRESULT identifying success or error. On error, these will be returned:
S S_OK Image successfully returned.
S ITC_IMGBUFF_TOO_SMALL_E pImgBuffer is too small to contain
the signature captured image.
S ITC_TIMEOUT_E Timeout.
S ITC_INV_PARAMETER_E One of the parameters is invalid.
S S_DEVICE_NOT_OPENED_E The device had not been opened.
Remarks
The image is returned in pImgBuffer in the caller specified format.
See Also
None.