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 风格应用程序中将画布保存为图像
基础教程推荐
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- WPF 模态进度窗口 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
