DevIL Documentation | Home | Previous | Next |
The ilutConvertToHBitmap function returns a Windows-friendly bitmap handle.
HBITMAP ilutConvertToHBitmap(
HDC hDC
);
ilutConvertToHBitmap creates a Windows bitmap handle (HBITMAP) copy of the current image, for direct use in Windows.
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.
ilGenImages, ilBindImage, ilutGetHPal