开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜