示例#1
0
        public static PictureBitmapDrawable GetDrawable(TextReader reader, ISvgColorMapper colorMapper = null)
        {
            var svg = SVGParser.ParseSvgFromReader(reader, colorMapper);

            return(new PictureBitmapDrawable(svg.Picture));
        }
示例#2
0
        public static PictureBitmapDrawable GetDrawable(Stream stream, ISvgColorMapper colorMapper = null)
        {
            var svg = SVGParser.ParseSvgFromStream(stream, colorMapper);

            return(new PictureBitmapDrawable(svg.Picture));
        }
示例#3
0
        public static PictureBitmapDrawable GetDrawable(string svgString, ISvgColorMapper colorMapper = null)
        {
            var svg = SVGParser.ParseSVGFromString(svgString, colorMapper);

            return(new PictureBitmapDrawable(svg.Picture));
        }