Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BitmapImage and Bitmap

Sorry to ask a question like that but I can't found a good answer :/

What is the difference between BitmapImage and Bitmap?

I want to work with TIFF image with any one of them I have to work. I found some tutorial that works with BitmapImage and another that works with Bitmap.

like image 789
Akrem Avatar asked Jan 22 '26 01:01

Akrem


2 Answers

System.Windows.Media.Imaging.BitmapImage is a specialized BitmapSource that is optimized for loading images using Extensible Application Markup Language (XAML).

System.Drawing.Bitmap is a encapsulates a GDI+ bitmap which consists of the pixel data for a graphics image and its attributes.

The first is used with WPF/Silverlight (XAML), the second is used with Windows Forms (WinForms).

like image 98
Claus Jørgensen Avatar answered Jan 23 '26 18:01

Claus Jørgensen


Bitmap is a general purpose class in System.Drawing which can be used to manipulate images. Whereas the BitmapImage class is more geared toward use in the XAML / WPF world.

like image 41
Sachin Avatar answered Jan 23 '26 16:01

Sachin