Method function IGDIPlus.IGPGraphics.ExcludeClip(TGPRect) : TGPGraphics

From Mitov Wiki Doc
(Difference between revisions)
Jump to: navigation, search
David Alm (Talk | contribs)
(Automated Syncronization with Documentation)

Latest revision as of 17:19, 18 October 2012

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 ExcludeClip( rect : TGPRect ) : TGPGraphics;

C++ Builder:

TGPGraphics __fastcall ExcludeClip( TGPRect rect );

Visual C++ (MFC):

ExcludeClip(  rect );

Summary

Updates the clipping region to the portion of itself that does not intersect the specified rectangle.

Description

Call this method to update the clipping region to the portion

of itself that does not intersect the specified rectangle.



Example:

The following example creates a clipping region using a
rectangle and then draws a rectangle that demonstrates the
updated clipping region.

var
  AGraphics : IGPGraphics;

begin
  AGraphics := TGPGraphics.Create( ACanvas );


  // Create a Rect object, and set the clipping region to its exclusion.
  AGraphics.ExcludeClip( MakeRect( 100, 100, 200, 200 ) );

  // Fill a rectangle to demonstrate the clipping region.
  AGraphics.FillRectangle( TGPSolidBrush( aclRed ), 0, 0, 600, 600 );
end;

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox