Sign in to follow this  
dynameat

how to bitblit from a transformed source hdc

Recommended Posts

WINAPI32 / VC++ 2005 express / windowsXP hi, is there anyway I could bitblit from an hdc that was declared GM_ADVANCED, and contained rotation data, to a regular/normal hdc. if you are asking why, this cam as a result of me using doublebuffering and rotation/scaling of images.

Share this post


Link to post
Share on other sites
So what happened when you tried to just call BitBlt? Are you actually trying to blt from a rotated/sheared region or do you just want a copy of the bits on the screen?

Share this post


Link to post
Share on other sites
well, I have three hdc's, one is main_hdc, the other is back_hdc. these two are used for the backbuffer. now, the thirde is image_hdc, which is used to copy images (HBitmaps), into the backbuffer. now, the backbuffer is declared GM_ADVANCED, so when I copy each image into the backbuffer, I rotate/scale using XFORMS, and then bitblit to the backbuffer.
NOW, when I need to bitblit from the backbuffer, to the front (aka from back_hdc, to main_hdc), nothing happens. I guess this is the error mentioned in msdn.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this