Jump to content
  • Advertisement


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


GetDC for a particular rect on Desktop

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

I am capturing the entire Desktop, creating a bitmap, and then using GDI BitBlt to draw the bitmap as a background image on the Render Target in D3DIM. I would rather be able to capture specific rectangles of various sizes from the desktop. It appeared that using creating a HRGN and then GetDCEx and/or SelectClipRegion might work, but I have not had any success. It may be that I just don''t understand these functions, or I am on the wrong track. Any suggestions and/or some sample code would be greatly appreciated. Thanks Karl Fisher karl@hsnp.com Hot Springs Village, Arkansas KarlFisher

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!