ImageFormat ImageFormat ImageFormat ImageFormat Class


Specifies the file format of the image. Not inheritable.

public ref class ImageFormat sealed
[System.ComponentModel.TypeConverter("System.Drawing.ImageFormatConverter, System.Windows.Extensions, Version=, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51")]
public sealed class ImageFormat
type ImageFormat = class
Public NotInheritable Class ImageFormat


The properties of the ImageFormat class indicate image formats such as bitmap (Bmp), enhanced metafile (Emf), and icon (Icon). For example, you can use the properties of the ImageFormat class to specify an image format when saving an image using the Save method. You can compare two image formats by using the Equals method.


ImageFormat(Guid) ImageFormat(Guid) ImageFormat(Guid) ImageFormat(Guid)

Initializes a new instance of the ImageFormat class by using the specified Guid structure.


Bmp Bmp Bmp Bmp

Gets the bitmap (BMP) image format.

Emf Emf Emf Emf

Gets the enhanced metafile (EMF) image format.

Exif Exif Exif Exif

Gets the Exchangeable Image File (Exif) format.

Gif Gif Gif Gif

Gets the Graphics Interchange Format (GIF) image format.

Guid Guid Guid Guid

Gets a Guid structure that represents this ImageFormat object.

Icon Icon Icon Icon

Gets the Windows icon image format.

Jpeg Jpeg Jpeg Jpeg

Gets the Joint Photographic Experts Group (JPEG) image format.

MemoryBmp MemoryBmp MemoryBmp MemoryBmp

Gets the format of a bitmap in memory.

Png Png Png Png

Gets the W3C Portable Network Graphics (PNG) image format.

Tiff Tiff Tiff Tiff

Gets the Tagged Image File Format (TIFF) image format.

Wmf Wmf Wmf Wmf

Gets the Windows metafile (WMF) image format.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Returns a value that indicates whether the specified object is an ImageFormat object that is equivalent to this ImageFormat object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns a hash code value that represents this object.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Converts this ImageFormat object to a human-readable string.

Applies to

See also