一个SVG图像有6个图标,需要选择一个? [英] A SVG Image have 6 icon and need to choose one?

查看:426
本文介绍了一个SVG图像有6个图标,需要选择一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在其中有5-6个图标的SVG文件格式,我需要根据需要而不是整个图像来接图标。

I have an SVG file format in which there is 5-6 icon and I need to pick icon according to the requirement not the whole Image.

在简单的,你可以解析.SVG到您的ImageView或帆布,但这个时候,我需要从选择中特定的图标。

In Simply you can parse the .SVG onto your ImageView Or Canvas but this time I need to choose particular icon from the among.

这是可以做到与编码或者我需要单独绘制所有图标?

有人建议我的方式,如何做到这一点?

Somebody suggest me the way, how to make it happen ?

推荐答案

您不说你正在使用的SVG库。如果你正在使用AndroidSVG,您可以添加<视图> 元素的SVG(每个图标),并选择相应的图标使用renderViewToPicture()等绘制

You don't say which SVG library you are using. If you are using AndroidSVG, you could add <view> elements to your SVG (one for each icon) and select the appropriate icon to draw using renderViewToPicture() etc.

这篇关于一个SVG图像有6个图标,需要选择一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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