WPF Path vs Image png jpg

Consider a Buttonconsisting of many graphical elements (s Path) drawn on Canvas. Why is it better to use Pathother elements to create an image in Buttonthan to assign it Bitmap?

I know one advantage: "the path is a vector image." But if I do not plan to zoom in, why should I use it instead of my custom .png, .ico and .jpg images?

+3
source share
1 answer

Using a path makes it less likely, your button will look blurry at different DPIs, which often happens with bitmaps.

+4

Source: https://habr.com/ru/post/1712652/


All Articles