saving canvas as image in metro style app with C#/XAML(使用 C#/XAML 在 Metro 风格应用程序中将画布保存为图像)
问题描述
我正在使用 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 风格应用程序中将画布保存为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 C#/XAML 在 Metro 风格应用程序中将画布保存为图像


基础教程推荐
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01