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

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

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

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