DevIL Documentation Home | Previous | Next

ilutSetHBitmap

The ilutSetHBitmap function sets the current image to be a copy of a Win32 bitmap.


ILboolean ilutSetHBitmap(
  HBITMAP Bitmap
);

Parameters

Bitmap
Bitmap to copy to the current bound image.

Remarks

ilutSetHBitmap copies Bitmap to the current bound image in a format OpenIL can understand. The image can then be used just as if you had loaded an image via ilLoadImage. This function is the opposite of ilutConvertToHBitmap.

Error Codes

ILUT_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.

See Also

ilGenImages, ilBindImage, ilutConvertToHBitmap