views:

121

answers:

1

Hi all,

I'm using :

SendKeys.SendWait("+{PRTSC}");
InteropBitmap interopBitmap = System.Windows.Clipboard.GetData(System.Windows.DataFormats.Bitmap) as InteropBitmap;

On my computer, everything is ok. On another computer, I get an OutOfMemoryException. Why ? How to solve it ?

Thanks in advance for your answer

A: 

Wouldn't Graphics.CopyFromScreen() be a more elegant solution?

Bobby
It's more complex.If I have many screen, it's hard to know the global size of all the screen. Except if there's a ready api
Tim