re_image2bmp()

extern ReImageHandle KADMOS_API re_image2bmp
  (const ReImage *image, void **bmp_buffer);
      

Parameter:

image
Address of the source ReImage image.
bmp_buffer
Address of a pointer to receive the destination bitmap address (BITMAPINFOHEADER*).

Return value:

Handle of the allocated memory, NULL in case of error.

Comment:

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.

Reference: