Reputation: 12283
Consider a Button
composed of many graphical elements (and Path
) drawn on Canvas
. Why is it better to use the Path
and other elements to build an image in that Button
than assigning a custom Bitmap
to it?
I know one advantage, "the path is a vector image". But if I'm not planning to zoom, why should I use it in place of my custom .png, .ico and .jpg images?
Upvotes: 3
Views: 2127
Reputation: 14111
Using a Path makes it less likely your button will look blurry on different DPIs, which often happens with bitmaps.
Upvotes: 5