Reputation: 1097
I'm designing a WPF application which has the Aero glass effect and works in Windows 8 (where we can't leverage the actual Windows Aero using DwmExtendFrameIntoClientArea
).
To do so I need to take a snapshot of the region under my window without my application on it (and then apply blur effect on that image)! I'm using Graphics.CopyFromScreen
but it captures the screen with my application included. I can't minimize the window, since this image is being redrawn every 100 msecs.
How can I achieve this functionality? (I'm using .NET 4.0)
Upvotes: 2
Views: 1742
Reputation: 13
If u really want to take a screenshot u HAVE to minimize or make it invisible. Additionally blurring every 100ms takes too much perfomance. Im sorry but if there is a solution it wont be lag free. Anyway good luck. May you take a look at this: http://brianlagunas.com/add-windows-8-aero-theme-support-to-your-wpf-custom-control/
Upvotes: 0