Method function IGDIPlus.IGPGraphics.SetCompositingMode(TGPCompositingMode) : TGPGraphics

From Mitov Wiki Doc
Revision as of 17:18, 18 October 2012 by David Alm (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.

Class: IGPGraphics

Contents

Syntax

Delphi:

function SetCompositingMode( compositingMode : TGPCompositingMode ) : TGPGraphics;

C++ Builder:

TGPGraphics __fastcall SetCompositingMode( TGPCompositingMode compositingMode );

Visual C++ (MFC):

SetCompositingMode(  compositingMode );

Summary

Sets the compositing mode of the TGPGraphics object.

Description

Call this method to set the compositing mode of the TGPGraphics object. 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.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox