Export (0) Print
Expand All

ColorAdjustType enumeration

Applies to: desktop apps only

The ColorAdjustType enumeration specifies which GDI+ objects use color-adjustment information. You can adjust the colors in a rendered image by passing the address of an ImageAttributes object to the Graphics::DrawImage method. An ImageAttributes object maintains color and grayscale settings for five adjustment categories: default, bitmap, brush, pen, and text. Several of the methods of the ImageAttributes class receive an element of the ColorAdjustType enumeration to specify the adjustment category.

Syntax

typedef enum  {
  ColorAdjustTypeDefault   = 0,
  ColorAdjustTypeBitmap    = 1,
  ColorAdjustTypeBrush     = 2,
  ColorAdjustTypePen       = 3,
  ColorAdjustTypeText      = 4,
  ColorAdjustTypeCount     = 5,
  ColorAdjustTypeAny       = 6 
} ColorAdjustType;

Constants

ColorAdjustTypeDefault

Specifies that color or grayscale adjustment applies to all categories that do not have adjustment settings of their own.

ColorAdjustTypeBitmap

Specifies that color or grayscale adjustment applies to bitmapped images.

ColorAdjustTypeBrush

Specifies that color or grayscale adjustment applies to brush operations in metafiles.

ColorAdjustTypePen

Specifies that color or grayscale adjustment applies to pen operations in metafiles.

ColorAdjustTypeText

Specifies that color or grayscale adjustment applies to text drawn in metafiles.

ColorAdjustTypeCount

Used internally to record the number of color adjustment types.

ColorAdjustTypeAny

Reserved

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdipluscolormatrix.h (include Gdiplus.h)

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft