Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CompositingQuality enumeration

Applies to: desktop apps only

The CompositingQuality enumeration specifies whether gamma correction is applied when colors are blended with background colors. This enumeration is used by the Graphics::GetCompositingQuality and Graphics::SetCompositingQuality methods of the Graphics class.

Syntax

typedef enum  {
  CompositingQualityDefault          = QualityModeDefault,
  CompositingQualityHighSpeed        = QualityModeLow,
  CompositingQualityHighQuality      = QualityModeHigh,
  CompositingQualityGammaCorrected,
  CompositingQualityAssumeLinear 
} CompositingQuality;

Constants

CompositingQualityDefault

Specifies that gamma correction is not applied.

CompositingQualityHighSpeed

Specifies that gamma correction is not applied.

CompositingQualityHighQuality

Specifies that gamma correction is applied.

CompositingQualityGammaCorrected

Specifies that gamma correction is applied.

CompositingQualityAssumeLinear

Specifies that gamma correction is not applied.

Remarks

When you specify that gamma correction should not be applied, the image data to be rendered (blended with the background) is assumed to be in a linear color space with a gamma value of 1.0. As a result, no gamma adjustment is applied to the image data before or after blending the image with the background.

When you specify that gamma correction should be applied, the image data to be rendered (blended with the background) is assumed to be in the sRGB color space with a gamma value of 2.2. To ensure accurate blending, the input image data is transformed into a linear (gamma = 1.0) space before the colors are blended and transformed back into sRGB (gamma = 2.2) space afterward. This mode results in a more accurate blend at the expense of additional processing time.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusenums.h (include Gdiplus.h)

See also

Graphics::GetCompositingQuality
Graphics::SetCompositingQuality

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

Show:
© 2014 Microsoft