如何调用图像文件用于SVG图像元素? [英] How call an image file to use into SVG image element?

查看:109
本文介绍了如何调用图像文件用于SVG图像元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的本地PC中打开一个本地图像文件,例如E:\ image \ a.jpg,然后我编写如下代码:

< svg>

< image xlink:herf =" E:\ image\a.jpg" X =" 100" Y =" 100"高度= QUOT; 500" width =" 600">

< / svg>


但图片不会在我的IE中显示,如何调用本地图片文件使用SVG图像元素?


非常感谢。

晚安。

I want to open a local image file in my local PC, such as "E:\image\a.jpg", then I write the code as following:
<svg>
<image xlink:herf="E:\image\a.jpg" x="100" y="100" height="500" width="600">
</svg>

but the image don''t show in my IE,how call a local image file to use the SVG image element?

Thank you very much.
Good night.

推荐答案

A" .jpg"包含用于渲染(显示)图像的像素和颜色的信息。

SVG文件包含数学公式,告诉正在渲染图像的软件如何重新创建显示图像的实际对象。


以下是关于 SVG文档结构


-Frinny
A ".jpg" contains information about pixels and colours to render (show) the image.

An SVG file contains math formulas that tell the software that is rendering the image how to recreate actual objects that show the image.


Here is some documentation on the SVG document structure.

-Frinny


请告诉我如何显示图像在IE浏览器中通过SVG< image? > ;.

谢谢。
Pls tell me how to display an image in IE by SVG <image ? >.
thanks.


以下代码使用< object> 元素加载来自服务器的SVG文件。


如果加载失败,浏览器将显示开始和结束对象标签之间的内容。

The following code uses an <object> element to load the SVG file from the server.

If it fails to load, the browser will display the content between the opening and closing object tags.

展开 | 选择 | Wrap | 行号


这篇关于如何调用图像文件用于SVG图像元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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