I'm creating dynamic templated XAML designs that I would like to convert to PNG or GIF from my C# code.
Any ideas?
You need to use the RenderTargetBitmap
class. MSDN has an example of how to convert a Visual
to an image.
Found an interesting article on how to do this...
Converting and customizing XAML to PNG with server-side WPF
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With