问题描述
我正在使用 C#/XAML 开发 Metro 风格的绘画类应用程序.我想将画布上绘制的任何内容保存为图像.我已经检查了这个解决方案,但它没有帮助我.
I am developing a paint like application in metro style with C#/XAML. I want to save whatever content is drawn on canvas as image. I have checked this solutions but it didn't helped me.
将画布保存到位图http://blogs.msdn.com/b/saveenr/archive/2008/09/18/wpf-xaml-saving-a-window-or-canvas-as-a-png-位图.aspx
那么如何将画布内容保存为图像?请帮我编写示例代码.
So how can I save the canvas content as image ? Please help me with sample coding.
推荐答案
目前似乎不支持开箱即用,就像我们以前用 WPF 做的那样:
It seems it is currently not supported out of the box like we were used to do it with WPF:
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/dd66c749-efed-4b55-a716-e0aa3a637d28
在开发 HTML5/Javascript Metro 应用时,您可以这样做:
While when doing HTML5/Javascript Metro apps you can do this:
http://social.msdn.microsoft.com/Forums/en-US/winappswithhtml5/thread/cf8c17dc-68d4-4777-951f-bb7f0665bd06
这篇关于使用 C#/XAML 在 Metro 风格应用程序中将画布保存为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!