System.Drawing.Imaging 命名空間

System.Drawing.Imaging 命名空間提供進階的 GDI+ 影像處理功能。 The System.Drawing.Imaging namespace provides advanced GDI+ imaging functionality. 基本圖形功能是由 System.Drawing 命名空間所提供。 Basic graphics functionality is provided by the System.Drawing namespace.

類別

BitmapData

指定點陣圖影像的屬性 (Attribute)。Specifies the attributes of a bitmap image. BitmapData 類別是由 LockBits 類別的 UnlockBits(BitmapData)Bitmap 方法所使用。The BitmapData class is used by the LockBits and UnlockBits(BitmapData) methods of the Bitmap class. 無法被繼承。Not inheritable.

ColorMap

定義轉換色彩的對應。Defines a map for converting colors. ImageAttributes 類別的數個方法會藉由使用色彩重新對應表 (這是 ColorMap 結構的陣列) 來調整影像色彩。Several methods of the ImageAttributes class adjust image colors by using a color-remap table, which is an array of ColorMap structures. 無法被繼承。Not inheritable.

ColorMatrix

定義含有 RGBAW 空間座標的 5 x 5 矩陣。Defines a 5 x 5 matrix that contains the coordinates for the RGBAW space. ImageAttributes 類別的多個方法會使用色彩矩陣來調整影像色彩。Several methods of the ImageAttributes class adjust image colors by using a color matrix. 這個類別無法被繼承。This class cannot be inherited.

ColorPalette

定義組成色板的色彩陣列。Defines an array of colors that make up a color palette. 色彩為 32 位元 ARGB 色彩。The colors are 32-bit ARGB colors. 無法被繼承。Not inheritable.

Encoder

Encoder 物件會封裝全域唯一識別項 (GUID),這個識別項識別影像編碼器參數的分類。An Encoder object encapsulates a globally unique identifier (GUID) that identifies the category of an image encoder parameter.

EncoderParameter

用於將值或值的陣列傳遞至影像編碼器。Used to pass a value, or an array of values, to an image encoder.

EncoderParameters

封裝 EncoderParameter 物件的陣列。Encapsulates an array of EncoderParameter objects.

FrameDimension

提供取得影像框架大小的屬性。Provides properties that get the frame dimensions of an image. 無法被繼承。Not inheritable.

ImageAttributes

包含如何在呈現期間操作點陣圖和中繼檔色彩的相關資訊。Contains information about how bitmap and metafile colors are manipulated during rendering.

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.

ImageFormat

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

Metafile

定義圖形中繼檔 (Metafile)。Defines a graphic metafile. 中繼檔,包含用在說明一系列可記錄 (建構) 和重播 (顯示) 之圖形操作的記錄。A metafile contains records that describe a sequence of graphics operations that can be recorded (constructed) and played back (displayed). 這個類別是不可繼承的。This class is not inheritable.

MetafileHeader

含有關聯之 Metafile 的屬性。Contains attributes of an associated Metafile. 無法被繼承。Not inheritable.

MetaHeader

含有 Windows 格式 (WMF) 中繼檔 (Metafile) 的資訊。Contains information about a windows-format (WMF) metafile.

PropertyItem

封裝中繼資料 (Metadata) 屬性來包括在影像檔中。Encapsulates a metadata property to be included in an image file. 無法被繼承。Not inheritable.

WmfPlaceableFileHeader

定義可置入中繼檔 (Metafile)。Defines a placeable metafile. 無法被繼承。Not inheritable.

列舉

ColorAdjustType

指定哪個 GDI+ 物件使用色彩調整資訊。Specifies which GDI+ objects use color adjustment information.

ColorChannelFlag

指定 CMYK (青、洋紅、黃、黑) 色彩空間中的個別色頻。 這個列舉型別 (Enumeration) 是由 SetOutputChannel 方法所使用。This enumeration is used by the SetOutputChannel methods.

ColorMapType

指定色彩對應的型別。Specifies the types of color maps.

ColorMatrixFlag

指定將受到 ImageAttributes 的色彩和灰階調整所影響的影像和色彩類型。Specifies the types of images and colors that will be affected by the color and grayscale adjustment settings of an ImageAttributes.

ColorMode

指定色彩元件值的兩種模式。Specifies two modes for color component values.

EmfPlusRecordType

指定與要讀取和寫入圖形指令的中繼檔 (Metafile) 一起使用的方法。Specifies the methods available for use with a metafile to read and write graphic commands.

EmfType

指定放置在加強型中繼檔 (EMF) 中的記錄性質。 Metafile 類別中的數個建構函式會使用此列舉型別。This enumeration is used by several constructors in the Metafile class.

EncoderParameterValueType

用於指定搭配影像的 EncoderParameterSave 方法使用之 SaveAdd 的資料型別。Used to specify the data type of the EncoderParameter used with the Save or SaveAdd method of an image.

EncoderValue

使用 Save(String, ImageCodecInfo, EncoderParameters)SaveAdd(EncoderParameters) 方法時,用於指定要傳遞至 JPEG 或 TIFF 影像編碼器的參數值。Used to specify the parameter value passed to a JPEG or TIFF image encoder when using the Save(String, ImageCodecInfo, EncoderParameters) or SaveAdd(EncoderParameters) methods.

ImageCodecFlags

提供影像編碼器/解碼器 (轉碼器) 的屬性。Provides attributes of an image encoder/decoder (codec).

ImageFlags

指定包含於 Image 物件中的像素資料屬性 (Attribute)。Specifies the attributes of the pixel data contained in an Image object. Flags 屬性會傳回此列舉型別的成員。The Flags property returns a member of this enumeration.

ImageLockMode

指定傳遞至 LockBits 方法的旗標參數之旗標。 LockBits 方法會鎖定影像的部分,以便您可以讀取或寫入像素資料。The LockBits method locks a portion of an image so that you can read or write the pixel data.

MetafileFrameUnit

指定用來調整中繼檔 (Metafile) 大小和位置的矩形度量單位。 這會在 Metafile 物件的建立期間加以指定。This is specified during the creation of the Metafile object.

MetafileType

指定中繼檔 (Metafile) 的類型。 Type 屬性會傳回此列舉型別的成員。The Type property returns a member of this enumeration.

PaletteFlags

指定在系統調色盤 (Palette) 中色彩日期的型別。Specifies the type of color data in the system palette. 資料可以是有 Alpha 值、僅灰階資料或半色調資料的色彩資料。The data can be color data with alpha, grayscale data only, or halftone data.

PixelFormat

指定影像中每個像素的色彩資料格式。Specifies the format of the color data for each pixel in the image.

委派

PlayRecordCallback

不使用這個委派。This delegate is not used. 如需列舉中繼檔 (Metafile) 記錄的範例,請參閱 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)For an example of enumerating the records of a metafile, see EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc).

備註

Metafile類別提供方法來記錄與儲存中繼檔。The Metafile class provides methods for recording and saving metafiles. Encoder類別可讓使用者將擴充 GDI + 來支援任何影像格式。The Encoder class enables users to extend GDI+ to support any image format. PropertyItem類別提供方法來儲存和擷取映像檔中的中繼資料。The PropertyItem class provides methods for storing and retrieving metadata in image files.

警告

類別內System.Drawing.Imaging命名空間不支援在 Windows 或 ASP.NET 服務中使用。Classes within the System.Drawing.Imaging namespace are not supported for use within a Windows or ASP.NET service. 嘗試使用這些類別內其中一個應用程式類型可能會產生非預期的問題,例如會受到影響服務效能和執行階段例外狀況。Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions.

另請參閱