Jump to content
  • Advertisement
Sign in to follow this  
inuyaga

Function to take a screen shot

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

Hey i need a function to get the display bits of a Window. The only things i have is the HDC of the window i want the bits from. the function needs to be somthing on the lines of this GetDCBits(HDC h_dc,LPVOID lp_buff,DWORD dw_bufflen,LPBITMAPINFOHEADER lpbi); maby not exactaly like that but thats about all the info i can give the function. Which amounts to the HDC of the window. Thanks

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
try using GetDIBits, after creating a bitmap that you then blit the window's contents into. or you could create the DIB bitmap directly via CreateDIBSection and then blit the window's contents into that. CreateDIBSection will return the address of the buffer which contains the bitmaps color data.

Share this post


Link to post
Share on other sites
There have been many screenshot threads, try a search here and on the gl fourms.

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.

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!