天天看點

System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間

System.Drawing.Imaging 命名空間

.NET Framework 3.5 System.Drawing.Imaging 命名空間提供進階 GDI+ 圖像處理功能。基本圖形功能由 System.Drawing 命名空間提供。

Metafile 類提供記錄和儲存圖元檔案的方法。Encoder 類允許使用者擴充 GDI+ 以支援任何圖像格式。PropertyItem 類提供在圖像檔案中存儲和檢索中繼資料的方法。

System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
警告:
不支援在 Windows 或 ASP.NET 服務中使用 System.Drawing.Imaging 命名空間中的類。嘗試在這些應用程式類型之一中使用這些類可能會産生意想不到的問題,如服務性能降低和運作時異常。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間

說明
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
BitmapData 指定位圖圖像的屬性。BitmapData 類由 Bitmap 類的 LockBits 和 UnlockBits 方法使用。不可繼承。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ColorMap 定義轉換顔色的映射。ImageAttributes 類的幾種方法可使用顔色重新映射表來調整圖像顔色,該表是 ColorMap 結構的數組。不可繼承。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ColorMatrix 定義包含 RGBA 空間坐标的 5 x 5 矩陣。ImageAttributes 類的若幹方法通過使用顔色矩陣調整圖像顔色。無法繼承此類。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ColorPalette 定義組成調色闆的顔色的數組。這些顔色是 32 位 ARGB 顔色。不可繼承。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
Encoder Encoder 對象封裝一個全局唯一辨別符 (GUID),它辨別圖像編碼器參數的類别。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
EncoderParameter 用于向圖像編碼器傳遞值或值數組。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
EncoderParameters 封裝 EncoderParameter 對象的數組。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
FrameDimension 提供擷取圖像的架構次元的屬性。不可繼承。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ImageAttributes ImageAttributes 對象包含有關在呈現時如何操作位圖和圖元檔案顔色的資訊。ImageAttributes 對象維護多個顔色調整設定,包括顔色調整矩陣、灰階調整矩陣、灰階校正值、顔色映射表和顔色門檻值。呈現過程中,可以對顔色進行校正、調暗、調亮和移除。要應用這些操作,應初始化一個 ImageAttributes 對象,并将該 ImageAttributes 對象的路徑(連同 Image 的路徑)傳遞給 DrawImage 方法。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ImageCodecInfo ImageCodecInfo 類可提供必要的存儲成員和方法,以檢索與已安裝的圖像編碼器和解碼器(統稱編碼解碼器)相關的所有資訊。不可繼承。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ImageFormat 指定圖像的檔案格式。不可繼承。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
Metafile 定義圖形圖元檔案。圖元檔案包含描述一系列圖形操作的記錄,這些操作可以被記錄(構造)和被回放(顯示)。此類不能繼承。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
MetafileHeader 包含關聯的 Metafile 的屬性。不可繼承。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
MetaHeader 包含有關 Windows 格式 (WMF) 圖元檔案的資訊。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
PropertyItem 封裝要包括到圖像檔案中的中繼資料屬性。不可繼承。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
WmfPlaceableFileHeader 定義可放置的圖元檔案。不可繼承。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間

委托

委托 說明
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
PlayRecordCallback 此委托未使用。有關枚舉圖元檔案記錄的示例,請參見 EnumerateMetafile。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間

枚舉

枚舉 說明
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ColorAdjustType 指定哪些 GDI+ 對象使用顔色調整資訊。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ColorChannelFlag 指定 CMYK(青色、洋紅色、黃色、黑色)顔色空間中的個别通道。此枚舉由 SetOutputChannel 方法使用。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ColorMapType 指定顔色映射的類型。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ColorMatrixFlag 指定将受 ImageAttributes 的顔色和灰階調整設定影響的圖像和顔色的類型。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ColorMode 指定顔色分量值的兩種模式。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
EmfPlusRecordType 指定使用時有圖元檔案來讀寫圖形指令的各種可用方法。此枚舉的成員分成 3 組:
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
EmfType 指定放置在增強圖元檔案 (EMF) 中的記錄的性質。此枚舉由 Metafile 類中的幾個構造函數使用。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
EncoderParameterValueType 用于指定圖像的 Save 或 SaveAdd 方法所使用的 EncoderParameter 的資料類型。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
EncoderValue 用于指定在使用 Image.Save 或 Image.SaveAdd 方法時傳遞給 JPEG 或 TIFF 圖像編碼器的參數值。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ImageCodecFlags 提供圖像編碼器/解碼器(編碼解碼器)的屬性。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ImageFlags 指定 Image 對象中包含的像素資料的屬性。Flags 屬性傳回此枚舉的成員。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
ImageLockMode 指定傳遞給 LockBits 方法的标志參數的标志。LockBits 方法可鎖定圖像的一部分,以便讀取或寫入其像素資料。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
MetafileFrameUnit 指定矩形的度量機關,該矩形用于調整圖元檔案的大小和位置。這是在建立 Metafile 對象的過程中指定的。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
MetafileType 指定圖元檔案的類型。MetafileHeader.Type 屬性傳回此枚舉的成員。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
PaletteFlags 指定系統調色闆中顔色資料的類型。該資料可以是帶有 alpha、僅灰階資料或半色調資料的顔色資料。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間
PixelFormat 指定圖像中每個像素的顔色資料的格式。
System.Drawing.Imaging 命名空間System.Drawing.Imaging 命名空間

另請參見

參考

其他資源

Windows 窗體中的圖形和繪制 圖像、位圖和圖元檔案 使用圖像、位圖、圖示和圖元檔案 在托管 GDI+ 中使用圖像編碼器和解碼器 對圖像重新着色