ImageFormat 類別

定義

指定影像的檔案格式。Specifies the file format of the image. 無法被繼承。Not inheritable.

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

備註

ImageFormat類別的屬性會指出影像格式, 例如 bitmap (Bmp)、增強型中繼檔Emf() 和圖示 (Icon)。The properties of the ImageFormat class indicate image formats such as bitmap (Bmp), enhanced metafile (Emf), and icon (Icon). 例如, 您可以在ImageFormat Save使用方法儲存影像時, 使用類別的屬性來指定影像格式。For example, you can use the properties of the ImageFormat class to specify an image format when saving an image using the Save method. 您可以使用Equals方法來比較兩個影像格式。You can compare two image formats by using the Equals method.

建構函式

ImageFormat(Guid)

使用指定的 ImageFormat 結構,初始化 Guid 類別的新執行個體。Initializes a new instance of the ImageFormat class by using the specified Guid structure.

屬性

Bmp

取得點陣圖 (BMP) 影像格式。Gets the bitmap (BMP) image format.

Emf

取得增強型中繼檔 (EMF) 影像格式。Gets the enhanced metafile (EMF) image format.

Exif

取得可交換影像檔 (Exchangeable Image File,Exif) 格式。Gets the Exchangeable Image File (Exif) format.

Gif

取得圖形交換格式 (GIF) 影像格式。Gets the Graphics Interchange Format (GIF) image format.

Guid

取得 Guid 結構,表示這個 ImageFormat 物件。Gets a Guid structure that represents this ImageFormat object.

Icon

取得 Windows 圖示影像格式。Gets the Windows icon image format.

Jpeg

取得 Joint Photographic Experts Group (JPEG) 影像格式。Gets the Joint Photographic Experts Group (JPEG) image format.

MemoryBmp

取得記憶體中點陣圖的格式。Gets the format of a bitmap in memory.

Png

取得 W3C 可攜式網路圖形 (W3C Portable Network Graphics,PNG) 影像格式。Gets the W3C Portable Network Graphics (PNG) image format.

Tiff

取得標記的影像檔案格式 (Tagged Image File Format,TIFF) 影像格式。Gets the Tagged Image File Format (TIFF) image format.

Wmf

取得 Windows 中繼檔 (WMF) 影像格式。Gets the Windows metafile (WMF) image format.

方法

Equals(Object)

傳回數值,表示指定物件是否為等於這個 ImageFormat 物件的 ImageFormat 物件。Returns a value that indicates whether the specified object is an ImageFormat object that is equivalent to this ImageFormat object.

GetHashCode()

傳回表示這個物件的雜湊程式碼值。Returns a hash code value that represents this object.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

將這個 ImageFormat 物件轉換為人們可讀取的 (Human-Readable) 字串表示。Converts this ImageFormat object to a human-readable string.

適用於

另請參閱