System.Drawing.Imaging.ImageFormat Class

Specifies the file format of the image. Not inheritable.

See Also: ImageFormat Members

Syntax

[System.ComponentModel.TypeConverter(typeof(System.Drawing.ImageFormatConverter))]
public sealed class ImageFormat

Remarks

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

Requirements

Namespace: System.Drawing.Imaging
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0