public static Bitmap GetBitmap(string svgString, int width, int height, out List <Attributes> SvgAttributes, ISvgColorMapper colorMapper = null, bool isStecil = false) { var svg = SVGParser.ParseSVGFromString(svgString, colorMapper, out SvgAttributes, isStecil); return(MakeBitmapFromSvg(svg, width, height)); }
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); }
public static Bitmap GetBitmap(TextReader reader, int width, int height, ISvgColorMapper colorMapper = null) { var svg = SVGParser.ParseSvgFromReader(reader, colorMapper); return(MakeBitmapFromSvg(svg, width, height)); }
public static Bitmap GetBitmap(Stream stream, int width, int height, ISvgColorMapper colorMapper = null) { var svg = SVGParser.ParseSvgFromStream(stream, colorMapper); return(MakeBitmapFromSvg(svg, width, height)); }
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)); }
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); }
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)); }
public static Svg ParseSvgFromReader(TextReader reader, ISvgColorMapper pSVGColorMapper) { try { var xmlReader = XmlReader.Create (reader); Picture picture = new Picture(); var svgHandler = new SVGHandler (picture, pSVGColorMapper); svgHandler.Parse (xmlReader); Svg svg = new Svg(picture, svgHandler.getBounds(), svgHandler.getComputedBounds()); return svg; } catch (Exception e) { throw new SVGParseException(e); } }
public static Svg ParseSvgFromReader(TextReader reader, ISvgColorMapper pSVGColorMapper) { try { var xmlReader = XmlReader.Create(reader); Picture picture = new Picture(); var svgHandler = new SVGHandler(picture, pSVGColorMapper); svgHandler.Parse(xmlReader); Svg svg = new Svg(picture, svgHandler.getBounds(), svgHandler.getComputedBounds()); return(svg); } catch (Exception e) { throw new SVGParseException(e); } }
public static Svg ParseSvgFromReader (TextReader reader, ISvgColorMapper pSVGColorMapper) { try { var readerSettings = new XmlReaderSettings(); readerSettings.XmlResolver = null; readerSettings.DtdProcessing = DtdProcessing.Ignore; var xmlReader = XmlReader.Create (reader, readerSettings); Picture picture = new Picture(); var svgHandler = new SVGHandler (picture, pSVGColorMapper); svgHandler.Parse (xmlReader); Svg svg = new Svg(picture, svgHandler.getBounds(), svgHandler.getComputedBounds()); return svg; } catch (Exception e) { throw new SVGParseException(e); } }
public static Svg ParseSvgFromReader(TextReader reader, ISvgColorMapper pSVGColorMapper) { try { var readerSettings = new XmlReaderSettings(); readerSettings.XmlResolver = null; readerSettings.DtdProcessing = DtdProcessing.Ignore; var xmlReader = XmlReader.Create(reader, readerSettings); Picture picture = new Picture(); var svgHandler = new SVGHandler(picture, pSVGColorMapper); svgHandler.Parse(xmlReader); Svg svg = new Svg(picture, svgHandler.getBounds(), svgHandler.getComputedBounds()); return(svg); } catch (Exception e) { throw new SVGParseException(e); } }
public static Svg ParseSvgFromAsset (AssetManager pAssetManager, string pAssetPath, ISvgColorMapper pSVGColorMapper) { using (var stream = pAssetManager.Open (pAssetPath)) return ParseSvgFromStream (stream, pSVGColorMapper); }
public static Bitmap GetBitmap (string svgString, int width, int height, ISvgColorMapper colorMapper = null) { var svg = SVGParser.ParseSVGFromString (svgString, colorMapper); return MakeBitmapFromSvg (svg, width, height); }
public static Bitmap GetBitmap (TextReader reader, int width, int height, ISvgColorMapper colorMapper = null) { var svg = SVGParser.ParseSvgFromReader (reader, colorMapper); return MakeBitmapFromSvg (svg, width, height); }
public SVGHandler(Picture pPicture, ISvgColorMapper pSVGColorMapper) { this.mPicture = pPicture; this.mSVGPaint = new SVGPaint(pSVGColorMapper); }
public static Svg ParseSvgFromReader(TextReader reader, ISvgColorMapper pSVGColorMapper) { List <Attributes> SvgAttributes; return(ParseSvgFromReader(reader, pSVGColorMapper, out SvgAttributes, false)); }
public static Svg ParseSVGFromString(string pString, ISvgColorMapper pSVGColorMapper, out List <Attributes> SvgAttributes, bool isStecil = false) { return(ParseSvgFromReader(new StringReader(pString), pSVGColorMapper, out SvgAttributes, isStecil)); }
public static Bitmap GetBitmap (Stream stream, int width, int height, ISvgColorMapper colorMapper = null) { var svg = SVGParser.ParseSvgFromStream (stream, colorMapper); return MakeBitmapFromSvg (svg, width, height); }
public static PictureBitmapDrawable GetDrawable (string svgString, ISvgColorMapper colorMapper = null) { var svg = SVGParser.ParseSVGFromString (svgString, colorMapper); return new PictureBitmapDrawable (svg.Picture); }
public static Svg ParseSVGFromString(string pString, ISvgColorMapper pSVGColorMapper) { return(ParseSvgFromReader(new StringReader(pString), pSVGColorMapper)); }
public static Svg ParseSvgFromAsset(AssetManager pAssetManager, string pAssetPath, ISvgColorMapper pSVGColorMapper) { using (var stream = pAssetManager.Open(pAssetPath)) return(ParseSvgFromStream(stream, pSVGColorMapper)); }
public static PictureBitmapDrawable GetDrawable(TextReader reader, ISvgColorMapper colorMapper = null) { var svg = SVGParser.ParseSvgFromReader(reader, colorMapper); return(new PictureBitmapDrawable(svg.Picture)); }
public static PictureBitmapDrawable GetDrawable (TextReader reader, ISvgColorMapper colorMapper = null) { var svg = SVGParser.ParseSvgFromReader (reader, colorMapper); return new PictureBitmapDrawable (svg.Picture); }
public static Svg ParseSVGFromResource (Resources pResources, int pRawResourceID, ISvgColorMapper pSVGColorMapper) { return ParseSvgFromStream(pResources.OpenRawResource (pRawResourceID), pSVGColorMapper); }
public static Svg ParseSVGFromString (string pString, ISvgColorMapper pSVGColorMapper) { return ParseSvgFromReader(new StringReader(pString), pSVGColorMapper); }
public static PictureBitmapDrawable GetDrawable (Stream stream, ISvgColorMapper colorMapper = null) { var svg = SVGParser.ParseSvgFromStream (stream, colorMapper); return new PictureBitmapDrawable (svg.Picture); }
public static PictureBitmapDrawable GetDrawable(string svgString, ISvgColorMapper colorMapper = null) { var svg = SVGParser.ParseSVGFromString(svgString, colorMapper); return(new PictureBitmapDrawable(svg.Picture)); }
public static Svg ParseSvgFromStream(Stream pInputStream, ISvgColorMapper pSVGColorMapper) { return ParseSvgFromReader (new StreamReader (pInputStream), pSVGColorMapper); }
public static PictureBitmapDrawable GetDrawable(Stream stream, ISvgColorMapper colorMapper = null) { var svg = SVGParser.ParseSvgFromStream(stream, colorMapper); return(new PictureBitmapDrawable(svg.Picture)); }
public SVGHandler(Picture pPicture, ISvgColorMapper pSVGColorMapper) { this.mPicture = pPicture; this.mSVGPaint = new SVGPaint(pSVGColorMapper); //this.mSVGPaint.isStancil = true; }
public static Svg ParseSVGFromResource(Resources pResources, int pRawResourceID, ISvgColorMapper pSVGColorMapper) { return(ParseSvgFromStream(pResources.OpenRawResource(pRawResourceID), pSVGColorMapper)); }
public SVGHandler(Picture pPicture, ISvgColorMapper pSVGColorMapper, bool isStencil) { this.mPicture = pPicture; this.mSVGPaint = new SVGPaint(pSVGColorMapper); this.mSVGPaint.isStancil = isStencil; }
public static Svg ParseSvgFromStream(Stream pInputStream, ISvgColorMapper pSVGColorMapper) { return(ParseSvgFromReader(new StreamReader(pInputStream), pSVGColorMapper)); }
public SVGPaint(ISvgColorMapper pSVGColorMapper) { this.mSVGColorMapper = pSVGColorMapper; }