在 Windows Phone 中使用 SVG 文件,如 PNG 文件 [英] Using SVG files like PNG files in Windows Phone

查看:25
本文介绍了在 Windows Phone 中使用 SVG 文件,如 PNG 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在谷歌上搜索了一些答案,但没有找到任何对我有用的东西.是否可以在 Windows Phone 8 的图像控件中使用 png(jpeg 或任何其他光栅图形格式)等 svg 文件?结果类似于以下(不工作)代码:

I have googled for some answers, but it didn't come up with anything of use for me. Is it possible to use svg files like png (jpeg, or any other raster graphic format) in Image control in Windows Phone 8? With the result similar to the following (not working) code:

<Image Margin="0,0,0,-19" Source="/Assets/SVG/image.svg" 
Stretch="Fill" HorizontalAlignment="Center"/>

推荐答案

我认为 Windows Phone 本身不支持 SVG(也许 IE10 移动版除外).但是,您可以使用 Inkscape 等工具轻松地将 SVG 图像转换为 XAML.

I don't think SVG is natively supported in Windows Phone (except, perhaps, in IE10 mobile). However, you can easily convert an SVG image to XAML, using tools like Inkscape.

这篇关于在 Windows Phone 中使用 SVG 文件,如 PNG 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆