Jump to content
  • Advertisement


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


blitting image data (win32)

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

im trying to blit a 24 bit targa onto a dialog box or just exclude the dialog and putting it at x,y. i already have the dialog window showing & the image in a WxH array of unsigned chars. how do i show it at x,y coord, using gdi or something/ thx,

Share this post

Link to post
Share on other sites
Try looking at the BitBlt functions in GDI.

If I remember correctly, you need to get a DC for the window, create a Memory DC for the bitmap, select the bitmap into the Memory DC, and call the bitblt function.

Don''t forget to release the DCs..

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!