ImageFormat Class

ImageFormat Class

 

Specifies the file format of the image. Not inheritable.

Namespace:   System.Drawing.Imaging
Assembly:  System.Drawing (in System.Drawing.dll)

System.Object
  System.Drawing.Imaging.ImageFormat

[TypeConverterAttribute(typeof(ImageFormatConverter))]
public sealed class ImageFormat

NameDescription
System_CAPS_pubmethodImageFormat(Guid)

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

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticBmp

Gets the bitmap (BMP) image format.

System_CAPS_pubpropertySystem_CAPS_staticEmf

Gets the enhanced metafile (EMF) image format.

System_CAPS_pubpropertySystem_CAPS_staticExif

Gets the Exchangeable Image File (Exif) format.

System_CAPS_pubpropertySystem_CAPS_staticGif

Gets the Graphics Interchange Format (GIF) image format.

System_CAPS_pubpropertyGuid

Gets a Guid structure that represents this ImageFormat object.

System_CAPS_pubpropertySystem_CAPS_staticIcon

Gets the Windows icon image format.

System_CAPS_pubpropertySystem_CAPS_staticJpeg

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

System_CAPS_pubpropertySystem_CAPS_staticMemoryBmp

Gets the format of a bitmap in memory.

System_CAPS_pubpropertySystem_CAPS_staticPng

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

System_CAPS_pubpropertySystem_CAPS_staticTiff

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

System_CAPS_pubpropertySystem_CAPS_staticWmf

Gets the Windows metafile (WMF) image format.

NameDescription
System_CAPS_pubmethodEquals(Object)

Returns a value that indicates whether the specified object is an ImageFormat object that is equivalent to this ImageFormat object.(Overrides Object.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Returns a hash code value that represents this object.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Converts this ImageFormat object to a human-readable string.(Overrides Object.ToString().)

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.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft