Recommended Posts

i have a problem with a directX10/11 game. i will make ingame screenshot with c#. its works with anti aliasing off. but if i make anti aliasing on i have only blackscreen. i dont know solution of this problem, i hope anybody from u can help.

here is my c# code:

GetWindowRect(new HandleRef(this, pID), out rc);

int width = rc.Right - rc.Left;
int height = rc.Bottom - rc.Top;

if (width == 0 || height == 0)
{
// game not started
}
else
{
if (width < 200)
{
// game not started or in the taskbar
}
else
{
size = new System.Drawing.Size(width, height);