BMPToImage
Converts a bitmap image
int BMPToImage(
const BYTE *srcBitmap,
const int maxX,
const int maxY,
int *sizeX,
int *sizeY,
IMAGE *destImage
);
Parameters
*srcBitmap
|
Input bitmap image data address
|
maxX
|
X direction image maximum size
|
maxY
|
Y direction image maximum size
|
*sizeX
|
Actual image size in the X direction storage space (output)
|
*sizeY
|
Actual image size in the Y direction storage space (output)
|
*destImage
|
Output image data structure address
|
Return Value
NORMAL(0): Successful completion
ERROR(-1): Unsuccessful completion
Description
Converts the input bitmap image to a measurable format and store the result.
It also enables the conversion of a monochrome bitmap image to RGB full color.
If the input bitmap image exceeds the maximum XY size that can be stored in the image memory, the right and bottom side parts are truncated to fit in the maximum size, and stored.
Supported bitmap formats are shown below.
Bits per pixel : 8/24/32 bits
Image compression : None only
Bitmap format : Windows format only
Notes