Akrem
Akrem

Reputation: 4652

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.

Upvotes: 3

Views: 13126

Answers (2)

Sachin
Sachin

Reputation: 876

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.

Upvotes: 1

Claus Jørgensen
Claus Jørgensen

Reputation: 26345

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).

Upvotes: 12

Related Questions