Home > OS >  SVG and android studio
SVG and android studio

Time:10-16

Question from a beginner) Why do I get stripes between color transitions when converting an image to SVG and uploading it to android studio? How to fix it ?enter image description here

enter image description here

CodePudding user response:

The SVG image format can only represent things in vectors, meaning lines or curves, as opposed to the usual pixel-based formats.

This means it is very efficient for representing diagrams, simple shapes and letters, to the point where you can zoom endlessly into them without losing quality, but it cannot represent full-color realistic images with the same precision or efficiency.

Basically, you should only use SVG (and other vector-based graphics formats) for icons and simple shapes, not complex shapes with different hues of color.

  • Related