Jump to content
  • Advertisement


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


win32 CreateBitmap?

This topic is 6136 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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!