0

I'd like to copy an image of the desktop of my secondary screen and place it into a window on the primary screen (using C# and WPF).

I was thinking about using Drawing.CopyFromScreen but that's WinForm-tech and I'd like to see if it's possible using WPF only.

What would be the fasted perfoming way of doing this if I want to continously capture this image?

Can I create an ImageSource for the screen image somehow?

Also, if the mouse-pointer is not captured with this method I'd like to draw it into this image so I can see where the pointer is on the secondary screen without actualy seeing the screen physically.

Only need this for Windows 8.

Andreas Zita
  • 7,232
  • 6
  • 54
  • 115

1 Answers1

0

I think this article is exactly what you need. It describes how to take a screen capture and create a BitmapSource (which inherits from ImageSource) from it.

Gumbo
  • 643,351
  • 109
  • 780
  • 844
bouvierr
  • 3,563
  • 3
  • 27
  • 32