re_clipboard2image()

extern ReImageHandle XXX_API re_clipboard2image(ReImage *image);
      

Parameter:

image
Address of a structure to receive the destination ReImage image.

Return value:

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

Comment:

This function is available under Windows only. The image from the clipboard (if there is any) 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: