简体   繁体   English

如何将画布保存为图像

[英]How to save a Canvas like an Image

I have a Silverlight application that allows you to write with the mouse like a paint. 我有一个Silverlight应用程序,可让您像画图一样用鼠标书写。 I am using a canvas inside a grid, and now I want to save that you draw on the canvas in a kind of file that you can open again in any time. 我正在网格内使用画布,现在我想保存的是,您在画布上绘制的文件可以随时重新打开。 Finally I use FileDialogs to do it. 最后,我使用FileDialogs来做到这一点。

I don´t know the way to save the canvas and neither how to open the file saved. 我不知道保存画布的方法,也不知道如何打开保存的文件。 I have a clue, maybe writeable bitmap will be a good solution, but I didn´t find a good tutorial about it. 我有一个线索,也许可写位图将是一个很好的解决方案,但是我没有找到关于它的很好的教程。

Thanks in advance. 提前致谢。

Best regards. 最好的祝福。

请查看以下内容: 如何将画布另存为图像?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM