我继续使用wpf,我需要显示这个图像:Logo.svg
进入我的图像控制室。
如何处理允许我将图像上传到控件的web请求?有人能给我看这个吗?
发布于 2015-06-16 18:28:29
您可以使用codeplex中的开源项目将svg转换为XAML:http://svg2xaml.codeplex.com/
然后,您可以像这样加载SVG:
using(FileStream stream = new FileStream(FileName, FileMode.Open, FileAccess.Read))
{
DrawingImage image = SvgReader.Load(stream);
// SvgReaderOptions options = new SvgReaderOptions(...);
// DrawingImage image = SvgReader.Load(stream, options);
}https://stackoverflow.com/questions/30875326
复制相似问题