Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between System.Drawing.Bitmap and System.Windows.Media.Imaging.WriteableBitmap

What is the difference between the 2? Some examples would be great!

like image 353
Egon Avatar asked Sep 25 '26 11:09

Egon


2 Answers

There is no System.Drawing.Bitmap in Silverlight.

If you are asking for a comparison between this in the .NET framework and WritableBitmap in Silverlight then the differences are huge. The WritableBitmap is a simple representation of a bitmap with very few constructors or means of manipulation. Most of what you can do with Bitmap you would need to implement yourself via the Pixels array.

like image 55
AnthonyWJones Avatar answered Sep 28 '26 00:09

AnthonyWJones


The most powerful aspect of WritableBitmap is the Render() method which allows rendering a UIElement atop the bitmap. This can be used to transform images (scale, etc.) or to render overlays, etc.

like image 33
AshleyF Avatar answered Sep 28 '26 01:09

AshleyF



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!