System.Drawing.Imaging Namespace

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

指定位图图像的特性。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

定义图形图元文件。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) 图元文件的信息。Contains information about a windows-format (WMF) metafile.

PropertyItem

封装要包括到图像文件中的元数据属性。Encapsulates a metadata property to be included in an image file. 不可继承。Not inheritable.

WmfPlaceableFileHeader

定义可放置的图元文件。Defines a placeable metafile. 不可继承。Not inheritable.

枚举

ColorAdjustType

指定哪些 GDI+ 对象使用颜色调整信息。Specifies which GDI+ objects use color adjustment information.

ColorChannelFlag

指定 CMYK(青色、洋红色、黄色、黑色)颜色空间中的个别通道。 此枚举由 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

指定可用于图元文件的读取和写入图形命令方法。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 对象中包含的像素数据的特性。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 对象的过程中指定的。This is specified during the creation of the Metafile object.

MetafileType

指定图元文件的类型。 Type 属性返回此枚举的成员。The Type property returns a member of this enumeration.

PaletteFlags

指定系统调色板中颜色数据的类型。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. 有关枚举图元文件记录的示例,请参见 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.