Reputation: 19071
How I can create and save png-image in Windows8/C#? I find way without DirectX. Is there a way to render the set of XAML-primitives to png?
Upvotes: 0
Views: 859
Reputation: 45127
You can use the BitmapEncoder class to create a PNG image. Use the PngEncoderId as the Guid argument to CreateAsync. See this sample. See this sample for an example of how to save data.
There is no easy way to pickle the visual tree into an image like there is in Silverlight.
Upvotes: 2