extern ReImageHandle XXX_API re_image2bmp (const ReImage *image, void **bmp_buffer);
image
bmp_buffer
BITMAPINFOHEADER*
).Handle of the allocated memory, NULL
in case of error.
The source image will be converted from the ReImage
format into a bitmap. The function allocates sufficient
memory for the destination image. The return value is a pointer to a BITMAPINFOHEADER
structure, the bitmap
bits are returned at position:
(char *)bmp_buffer + (BITMAPINFOHEADER*)bmp_buffer->biSize
+ (BITMAPINFOHEADER*)bmp_buffer->biClrUsed * sizeof(RGBQUAD)
In case of error the NULL
pointer will be returned, the error text can be retrieved with
re_GetErrorText()
. In case of success a handle of the allocated memory will be returned. This memory can be
freed by a call to re_freeimage()
with the given handle.