Jump to content
  • Advertisement
Sign in to follow this  
b1gjo3

BitBlt Problem

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

hi everyone, im trying to draw a bitmap to my window and i have successfully done so when the image is less than about 2500 pixels. For some reason i cannot draw larger images, why might this be? Should i just limit BitBlt to draw a region of the bitmap instead of trying to draw it all at once. My goal is to be able to draw a bitmap that is at least 5000 pixels in size. thank you

Share this post


Link to post
Share on other sites
Advertisement
BitBlt() shouldnt have a problem with very large bitmaps but that said, why not just draw the visible portion of the bitmap?

Also, when BitBlt() fails you can use GetLastError() to find out why.

Share this post


Link to post
Share on other sites
how can i view the results of GetLastError()? Ive tried messagebox but it doesnt work.

i eventually plan on making a picturebox like VB with 2 scroll bars (horiz, vert)
to display an image. for some reason i can only disp images with less than 2000 pixels in dimensions

Share this post


Link to post
Share on other sites
i found the problem

CopyImage() fails on windows vista with an image that has a width greater than 2047 pixels.

here is a link for more details
http://support.microsoft.com/kb/935607

Share this post


Link to post
Share on other sites
it doesnt, i thought that was the problem at first so thats why the topic is "BitBlt problem"

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!