re_hbitmap2image()

extern ReImageHandle KADMOS_API re_hbitmap2image
  (HBITMAP hbmp, ReImage *image);
      

Parameter:

hbmp
Handle of the source bitmap image.
image
Pointer Pointer of a structure ReImage to receive the destination image.

Return value:

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

Comment:

The source Windows bitmap image under hbm will be converted into the ReImage format. The function allocates sufficient memory for the destination image. 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: