theSpyCry
theSpyCry

Reputation: 12283

WPF Path vs Image png jpg

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

Answers (1)

Kenan E. K.
Kenan E. K.

Reputation: 14111

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

Upvotes: 5

Related Questions