A
AAVarda
Hi,
I have a device that scan's a doc and send's the doc image back. Below is
the function in API to get the Image:
ULONG MTMICRGetImage (
char *pcDevName,
char *pcImageID,
char *pcBuffer,
DWORD *pwdLength
);
Example of using the function
===================
//Get the imgae size from function DocInfo
//Get the imgae ID from function DocInfo
//Allocate memory for image
ImageBuffer = (char*) VirtualAlloc (NULL, bufferSize, MEM_COMMIT,
PAGE_READWRITE);
//Use function MTMICRGetDevice to get device name for variable "Device"
//Get image from the device
MTMICRGetImage (Device, cValue, ImageBuffer, &bufferSize);
I have a device that scan's a doc and send's the doc image back. Below is
the function in API to get the Image:
ULONG MTMICRGetImage (
char *pcDevName,
char *pcImageID,
char *pcBuffer,
DWORD *pwdLength
);
Example of using the function
===================
//Get the imgae size from function DocInfo
//Get the imgae ID from function DocInfo
//Allocate memory for image
ImageBuffer = (char*) VirtualAlloc (NULL, bufferSize, MEM_COMMIT,
PAGE_READWRITE);
//Use function MTMICRGetDevice to get device name for variable "Device"
//Get image from the device
MTMICRGetImage (Device, cValue, ImageBuffer, &bufferSize);