Hi,
How can I take a screenshot on my secondary screen?
Thats what i have.
public Bitmap CaptureScreen()
{
using(Surface s = Surface.CreateOffscreenPlain(d, Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, Format.A8R8G8B8,
Pool.SystemMemory))
{
d.GetFrontBufferData(0, s);
Bitmap b = new Bitmap(SlimDX.Direct3D9.Surface.ToStream(s, SlimDX.Direct3D9.ImageFileFormat.Bmp, new Rectangle(222, 222, 500, 500)));
s.Dispose();
return b;
}
}
This works great, but only for my main display.
I could not find anything useful with Google.
Please help me.
Thanks and Greetings