Answer the question
In order to leave comments, you need to log in
How to convert svg xml icons to bitmap?
How to convert svg xml icons to bitmap? I load the icons from the server and in fact there is no other way except to use the Google library for conversion.
This one is suggested as an example:
SVG svg = SVGParser.getSVGFromResource(getResources(), R.raw.android);
PictureDrawable pictureDrawable = svg.createPictureDrawable();
Bitmap bitmap = Bitmap.createBitmap(pictureDrawable.getIntrinsicWidth(), pictureDrawable.getIntrinsicHeight(), Config.ARGB_8888);
Answer the question
In order to leave comments, you need to log in
Try using Inmotus SVG Generator ( https://bundlespace.com) > there is an example solution (for the logo):
https://bundlespace.com/intro/lessons/lesson-logo-...
Just import the SVG > into the left column. Apply style in the right column (you can set an empty added style) and upload to PNG or PDF (as convenient) > this batch processing will give the result in the archive.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question