DevIL Documentation Home | Previous | Next

ilutConvertToHBitmap

The ilutConvertToHBitmap function returns a Windows-friendly bitmap handle.


HBITMAP ilutConvertToHBitmap(
  HDC hDC
);

Parameters

hDC
The device context that you want to receive the HBITMAP.

Remarks

ilutConvertToHBitmap creates a Windows bitmap handle (HBITMAP) copy of the current image, for direct use in Windows.

Error Codes

ILUT_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
ILUT_OUT_OF_MEMORY - Could not allocate enough memory for the new bitmap.

See Also

ilGenImages, ilBindImage, ilutGetHPal