Пример #1
0
        public static PictureBitmapDrawable GetDrawable(Android.Content.Res.Resources resources,
                                                        int resID,
                                                        ISvgColorMapper colorMapper = null)
        {
            var svg = SVGParser.ParseSVGFromResource(resources, resID, colorMapper);

            return(new PictureBitmapDrawable(svg.Picture));
        }
Пример #2
0
        public static Bitmap GetBitmap(Android.Content.Res.Resources resources,
                                       int resID,
                                       int width, int height,
                                       ISvgColorMapper colorMapper = null)
        {
            var svg = SVGParser.ParseSVGFromResource(resources, resID, colorMapper);

            return(MakeBitmapFromSvg(svg, width, height));
        }