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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.