Archived

This topic is now archived and is closed to further replies.

win32 CreateBitmap?

This topic is 5804 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

how can i load a jpeg-file into a windows bitmap with type HBITMAP? i have decompressed the jpeg into rgb-data with libjpeg, then used CreateBitmap and it returns a handle. but when i want to draw it on screen i cant see anything! theres no fault in my drawing code, with other bitmaps it works. when i pass the decompressed data to opengl it works also without problems. what could i be doing wrong? or could somebody point me to a tutorial or post some code?

Share this post


Link to post
Share on other sites