Sign in to follow this  

Function to take a screen shot

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

This topic is 4860 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.

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