wpf - Which is better? Between using image file and draw vector shape -



wpf - Which is better? Between using image file and draw vector shape -

as said on title. want know improve between using image files , drawing vector shapes (or path). know using vector improve appearance performance.

and if depends on cases. can explain.

(this question may include wp7, silverlight, wpf or in general cases.)

here general reply compare pros/cons of bitmap (what think mean "image file") vs. vector.

bitmap-based images (gif, tiff, jpeg, png, bmp) concept of mapping colours (and other info such alpha layer) pixel grid. different file formats offer variations of supported , levels of compression high-level concept. finish map of pixels , info stored in file matrix/table.

vector-based images, say, path based. instead of storing info pixels, file format store geometric points , data.

the pros bitmaps are:

they render faster vector. because there minimal computation involved in presenting image (just take pixel map , display).

they handle "photographic" content improve vector.

they more portable vector. gif, jpeg, png, bmp more standard vector format (where adobe has market)

the cons bitmaps are:

they don't scale without degradation (pixelization)

manipulation (i.e. resizing, blurring, lighting, etc) of bitmap more processor expensive vector

the files much larger vector-based files

the pros vectors are:

flexible scaling , manipulation

smaller file formats vector

ideal print , animation (i.e. manipulating shape produce animation effect)

the cons vectors are:

render time, depending on complexity of vector, can longer

portability formats highly proprietary

work "graphic" based images not useful photorealism

hope helps.

wpf silverlight performance windows-phone-7 vector

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -