ImageCodecInfo 類別

定義

ImageCodecInfo 類別提供必要的儲存成員和方法,以擷取已安裝之影像編碼器和解碼器 (稱為轉碼器) 的所有相關資訊。The ImageCodecInfo class provides the necessary storage members and methods to retrieve all pertinent information about the installed image encoders and decoders (called codecs). 無法被繼承。Not inheritable.

public ref class ImageCodecInfo sealed
public sealed class ImageCodecInfo
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class ImageCodecInfo
type ImageCodecInfo = class
Public NotInheritable Class ImageCodecInfo
繼承
ImageCodecInfo
屬性

備註

GDI + 會使用影像編碼器,將儲存在 Bitmap 物件中的影像轉換成各種不同的檔案格式。GDI+ uses image encoders to convert the images stored in Bitmap objects to various file formats. 影像編碼器內建于 BMP、JPEG、GIF、TIFF 和 PNG 格式的 GDI + 中。Image encoders are built into GDI+ for the BMP, JPEG, GIF, TIFF, and PNG formats. 當您呼叫 Image 物件的 SaveSaveAdd 方法時,就會叫用編碼器。An encoder is invoked when you call the Save or SaveAdd method of a Image object.

屬性

Clsid

取得或設定 Guid 結構,含有識別特定 Codec 的 GUID。Gets or sets a Guid structure that contains a GUID that identifies a specific codec.

CodecName

取得或設定含有 Codec 的名稱之字串。Gets or sets a string that contains the name of the codec.

DllName

取得或設定字串,這個字串含有存留 Codec 的 DLL 路徑名稱。Gets or sets string that contains the path name of the DLL that holds the codec. 如果 Codec 不是在 DLL 中,則這個指標為 nullIf the codec is not in a DLL, this pointer is null.

FilenameExtension

取得或設定含有在 Codec 中所使用副檔名的字串。Gets or sets string that contains the file name extension(s) used in the codec. 副檔名是以分號隔開。The extensions are separated by semicolons.

Flags

取得或設定 32 位元值,用來儲存 Codec 的相關額外資訊。Gets or sets 32-bit value used to store additional information about the codec. 這個屬性會從 ImageCodecFlags 列舉型別 (Enumeration) 傳回旗標組合。This property returns a combination of flags from the ImageCodecFlags enumeration.

FormatDescription

取得或設定描述 Codec 的檔案格式之字串。Gets or sets a string that describes the codec's file format.

FormatID

取得或設定 Guid 結構,含有識別 Codec 的格式之 GUID。Gets or sets a Guid structure that contains a GUID that identifies the codec's format.

MimeType

取得或設定字串,含有 Codec 的多用途網際網路郵件延伸標準 (Multipurpose Internet Mail Extension,MIME) 類型。Gets or sets a string that contains the codec's Multipurpose Internet Mail Extensions (MIME) type.

SignatureMasks

取得或設定可以做為篩選條件的位元組二維陣列。Gets or sets a two dimensional array of bytes that can be used as a filter.

SignaturePatterns

取得或設定表示 Codec 的簽章之位元組二維陣列。Gets or sets a two dimensional array of bytes that represents the signature of the codec.

Version

取得或設定 Codec 的版本號碼。Gets or sets the version number of the codec.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetImageDecoders()

傳回 ImageCodecInfo 物件的陣列,物件含有內建於 GDI+ 的影像解碼器相關資訊。Returns an array of ImageCodecInfo objects that contain information about the image decoders built into GDI+.

GetImageEncoders()

傳回 ImageCodecInfo 物件的陣列,物件含有內建於 GDI+ 的影像編碼器相關資訊。Returns an array of ImageCodecInfo objects that contain information about the image encoders built into GDI+.

GetType()

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

(繼承來源 Object)
MemberwiseClone()

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

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱