Home > Guides > Programming > .NET and Windows Programming

Toggle Open Guide Table of ContentsGuide Contents

Close Table of ContentsGuide Contents

Close Table of Contents

Working with Images

Last updated Sep 9, 2004.

Working with Images

The .NET Framework has many facilities for loading, displaying, and manipulating images in many different formats. The formats that the Framework supports are shown in the table below.

ImageFormat value Description
Bmp Windows bitmap (BMP)
Emf Windows enhanced metafile (EMF)
Exif Exchangeable Image File
Gif Graphics Interchange Format (GIF)
Icon Windows icon file
Jpeg Joint Photographic Experts Group (JPEG) format
Png W3C Portable Network Graphics (PNG) format
Tiff Tag Image File Format (TIFF)
Wmf Windows metafile (WMF)

The Framework encapsulates the entire image handling functionality into two classes, System.Drawing.Bitmap and System.Drawing.Imaging.Metafile, that are descended from the System.Drawing.Image class. Metafiles are handled differently from the other image formats because they are fundamentally different: metafiles contain drawing commands whereas the other formats contain more traditional image data (color tables and pixel values). Encapsulating bitmap handling in this way allows you to perform the same set of operations on an image, regardless of its raw format. Rather than having different manipulation functions for every image type, the Framework converts everything to the internal Bitmap format so that one set of functions works with every image type. It also allows you to convert painlessly from one format to another.

Discussions

Copies of the array?
Posted Dec 23, 2008 03:40 PM by luige21
1 Replies
Hi
Posted Dec 5, 2008 05:10 AM by ajay2000bhushan
2 Replies
You have no clue.
Posted Jun 10, 2008 03:28 PM by theinternetmaster
1 Replies

Make a New Comment

You must log in in order to post a comment.

Related Resources

Jim Mischel"Highly unlikely" does not mean "impossible"
By Jim MischelJuly 18, 2009 No Comments

One of my programs crashed the other day in a very unexpected place.  A call to System.Threading.ConcurrentQueue.TryDequeue (from the Parallel Extensions to .NET) resulted in an OverflowException being thrown.  Investigation revealed a pretty serious bug in the System.Random constructor.

It's Here; Put Away Your Pre-Conceptions on What an OS Must Be: Part II
By John TraenkenschuhMay 24, 2009 No Comments

In the last blog in this series, Traenk relates his first experiences with computers and with coding.  But now, some years have passed. . .

It's Here; Put Away Your Pre-Conceptions on What an OS Must Be: Part I
By John TraenkenschuhMay 24, 2009 No Comments

Traenk relates his past experience with Operating Systems that goes back 25 years, ok, more than that but he ain't tellin'

See More Blogs

Informit Network