类 SVGParser
- java.lang.Object
-
- cn.authing.guard.util.svg.SVGParser
-
public class SVGParser extends Object
-
-
构造器概要
构造器 构造器 说明 SVGParser()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static SVGgetSVGFromAsset(AssetManager assetMngr, String svgPath)static SVGgetSVGFromAsset(AssetManager assetMngr, String svgPath, int searchColor, int replaceColor)static SVGgetSVGFromInputStream(InputStream svgData)static SVGgetSVGFromInputStream(InputStream svgData, int searchColor, int replaceColor)static SVGgetSVGFromResource(Resources resources, int resId)static SVGgetSVGFromResource(Resources resources, int resId, int searchColor, int replaceColor)static SVGgetSVGFromString(String svgData)static SVGgetSVGFromString(String svgData, int searchColor, int replaceColor)static PathparsePath(String pathString)
-
-
-
方法详细资料
-
getSVGFromInputStream
public static SVG getSVGFromInputStream(InputStream svgData) throws SVGParseException
-
getSVGFromString
public static SVG getSVGFromString(String svgData) throws SVGParseException
-
getSVGFromResource
public static SVG getSVGFromResource(Resources resources, int resId) throws SVGParseException
-
getSVGFromAsset
public static SVG getSVGFromAsset(AssetManager assetMngr, String svgPath) throws SVGParseException, IOException
-
getSVGFromInputStream
public static SVG getSVGFromInputStream(InputStream svgData, int searchColor, int replaceColor) throws SVGParseException
-
getSVGFromString
public static SVG getSVGFromString(String svgData, int searchColor, int replaceColor) throws SVGParseException
-
getSVGFromResource
public static SVG getSVGFromResource(Resources resources, int resId, int searchColor, int replaceColor) throws SVGParseException
-
getSVGFromAsset
public static SVG getSVGFromAsset(AssetManager assetMngr, String svgPath, int searchColor, int replaceColor) throws SVGParseException, IOException
-
-