Reputation: 1966
I am working with a WPF application and I came from web development background where I used to use images to show all kind of icons. But in this wpf project I found my senior developer draws them using wpf shapes.
So, it occurred to me is there a well known reason to do that? I mean does it enhance the performance somehow if I draw the icons instead of using images?
Upvotes: 1
Views: 418
Reputation: 44038
So, it occurred to me is there a well known reason to do that?
WPF has vector graphics. They stretch infinitely without losing resolution / quality.
In contrast, bitmaps (such as PNG or JPG) have a specific pixel resolution and they look bad when enlarged too much.
In terms of performance, displaying a bitmap is much cheaper than drawing a vector icon.
Upvotes: 3