Export (0) Print
Expand All

System.Drawing.Imaging Namespace

The System.Drawing.Imaging namespace provides advanced GDI+ imaging functionality. Basic graphics functionality is provided by the System.Drawing namespace.

The Metafile class provides methods for recording and saving metafiles. The Encoder and Decoder classes enable users to extend GDI+ to support any image format. The PropertyItem class provides methods for storing and retrieving metadata in image files.

Namespace hierarchy

Classes

Class Description
BitmapData Specifies the attributes of a bitmap image. The BitmapData class is used by the LockBits and UnlockBits methods of the Bitmap class. Not inheritable.
ColorMap Defines a map for converting colors. 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 Defines a 5x5 matrix that contains the coordinates for the RGBA space. Several methods of the ImageAttributes class adjust image colors by using a color matrix. Not inheritable.
ColorPalette Defines an array of colors that make up a color palette. The colors are 32-bit ARGB colors. Not inheritable.
Encoder An Encoder object encapsulates a globally unique identifier (GUID) that identifies the category of an image encoder parameter.
EncoderParameter You can use an EncoderParameter object to pass an array of values to an image encoder. You can also use an EncoderParameter object to receive a list of possible values supported by a particular parameter of a particular image encoder.
EncoderParameters Encapsulates an array of EncoderParameter objects.
FrameDimension Provides properties that get the frame dimensions of an image. Not inheritable.
ImageAttributes An ImageAttributes object contains information about how bitmap and metafile colors are manipulated during rendering. An ImageAttributes object maintains several color-adjustment settings, including color-adjustment matrices, grayscale-adjustment matrices, gamma-correction values, color-map tables, and color-threshold values.

During rendering colors can be corrected, darkened, lightened, removed, and so on. To apply such manipulations, initialize an ImageAttributes object and pass the address of that ImageAttributes object (along with the address of an Image object) to the DrawImage method.

ImageCodecInfo The ImageCodecInfo class provides the necessary storage members and methods to retrieve all pertinent information about the installed image codecs. Not inheritable.
ImageFormat Specifies the 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). Not inheritable.
MetafileHeader Contains attributes of an associated Metafile object. Not inheritable.
MetaHeader 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.

Delegates

Delegate Description
PlayRecordCallback This delegate is not used. For an example of enumerating the records of a metafile, see EnumerateMetafile.

Enumerations

Enumeration Description
ColorAdjustType Specifies which GDI+ objects use color adjustment information.
ColorChannelFlag Specifies individual channels in the CMYK (cyan, magenta, yellow, black) color space. This enumeration is used by the SetOutputChannel Methods.
ColorMapType Specifies the types of color maps.
ColorMatrixFlag Specifies the types of images and colors that will be affected by the color and grayscale adjustment settings of an ImageAttributes object.
ColorMode Specifies two modes for color component values.
EmfPlusRecordType Specifies the methods available for use with a metafile to read and write graphic commands. The members of this enumeration come in three groups:
EmfType Specifies the nature of the records that are placed in an Enhanced Metafile (EMF) file. This enumeration is used by several constructors in the Metafile class.
EncoderParameterValueType GDI+ uses image encoders to convert the images stored in Bitmap objects to various file formats. Image encoders are built into GDI+ for the BMP, JPEG, GIF, TIFF, and PNG formats. And encoder is invoked when you call the Save or SaveAdd method of a Bitmap object.
EncoderValue When you call the Save or SaveAdd method of an Image object, you can pass parameters to the image encoder by passing an EncoderParameters object to the Save or SaveAdd method. An EncoderParameters object contains an array of EncoderParameter objects. Each EncoderParameter object has an array of values and an Encoder property that specifies the parameter category. The EncoderValue enumeration provides names for some of the values that can be passed to the JPEG and TIFF image encoders.
ImageCodecFlags Provides flags for use with codecs.
ImageFlags Specifies the attributes of the pixel data contained in an Image object. The Image.Flags property returns a member of this enumeration.
ImageLockMode Specifies flags that are passed to the flags parameter of the Bitmap.LockBits method. The LockBits method locks a portion of an image so that you can read or write the pixel data.
MetafileFrameUnit Specifies the unit of measurement for the rectangle used to size and position a metafile. This is specified during the creation of the Metafile object.
MetafileType Specifies types of metafiles. The MetafileHeader.Type property returns a member of this enumeration.
PaletteFlags Specifies the type of color data in the system palette. 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.

See Also

.NET Framework Class Library

Show:
© 2014 Microsoft