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.
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).
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.
精彩评论