BMPToImage2
Converts a itmap image 2
int BMPToImage2(
const BYTE *srcBitmap,
const int format,
const int maxX,
const int maxY,
int *sizeX,
int *sizeY,
BYTE *destImage
)
Parameters
*srcBitmap
|
Input bitmap image data address
|
format
|
Converted image format
I_MONOCHRO: Monochrome
I_RGBCOLOR: color
|
maxX
|
X direction image maximum size
|
maxY
|
Y direction image maximum size
|
*sizeX
|
Actual image size in the X direction (output)
|
*sizeY
|
Actual image size in the Y direction (output)
|
*destImage
|
Output image data 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