BMPToImageSize2

Gets the size after bitmap image conversion 2

int BMPToImageSize2(
        const BYTE      *srcBitmap,
        const int       format,
        const int       maxX,
        const int       maxY
)

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

Return Value
Required space size (in bytes)
ERROR(-1): Unsuccessful completion

Description
Library to get the storage size of the converted data before converting a bitmap image. To convert a bitmap image, you need to allocate space of the required size by calling this method before calling a conversion method.

Notes