Is there an easy way to convert a WPF visual into an image? If so, what's the code?
Asked
Active
Viewed 8,643 times
12
-
The title on this question doesn't seem to match the question. A control and a visual of the control are not the same. – Aaron Thomas Jun 09 '15 at 15:17
1 Answers
12
It's not terribly difficult although you will probably want to wrap up functionality. I would take a look at RenderTargetBitmap the MSDN page has example usage.
The article How to: Create a Bitmap from a Visual is linked near the bottom of the page.

Quintin Robinson
- 81,193
- 14
- 123
- 132