GdipSetCompositingMode

 

 

Description

Sets the compositing mode of this Graphics object.

Syntax

GpStatus WINGDIPAPI GdipSetCompositingMode(

    GpGraphics *graphics,

    CompositingMode compositingMode

);

PowerBASIC Syntax

DECLARE FUNCTION GdipSetCompositingMode ( _

    BYVAL graphics AS DWORD, _

    BYVAL compositingMode AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

compositingMode

[in] Element of the CompositingMode enumeration that specifies the compositing mode.

Remarks

Suppose you create a SolidBrush object based on a color that has an alpha component of 192, which is about 75 percent of 255. If your Graphics object has its compositing mode set to CompositingModeSourceOver, then areas filled with the solid brush are a blend that is 75 percent brush color and 25 percent background color. If your Graphics object has its compositing mode set to CompositingModeSourceCopy, then the background color is not blended with the brush color. However, the color rendered by the brush has an intensity that is 75 percent of what it would be if the alpha component were 255.

 

You cannot use CompositingModeSourceCopy along with TextRenderingHintClearTypeGridFit.

 

Valid HTML 4.01 Transitional