adspace


What is the best way to take screenshots of a window with c++ in windows?

Answer Posted / Mayank Kumar Dixit

In C++, you can capture a screenshot of a window using GDI+ (Gdiplus.h) by getting the DC (Device Context) of the window and then bitblt (BitBlt) it to a compatible DC. Alternatively, you can use libraries like Direct2D or FreeImage for more advanced functionalities.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the latest version on c++?

1217


daily Routine of father

1492


Can union be self referenced?

1279


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1172


What character terminates all character array strings a) b) . c) END

1403