Method function IGDIPlus.IGPGraphics.Clear(TGPColor) : TGPGraphics

From Mitov Wiki Doc
Revision as of 17:19, 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 Clear( color : TGPColor ) : TGPGraphics;

C++ Builder:

TGPGraphics __fastcall Clear( TGPColor color );

Visual C++ (MFC):

Clear(  color );

Summary

Clears the TGPGraphics object to a specified color.

Description

Call this method to clear the TGPGraphics object to a

specified color.



Example:

The following example creates a Graphics object and a Color
object. The code then clears the Graphics object to a color
specified by the Color object.

var
  AGraphics : IGPGraphics;

begin
  AGraphics := TGPGraphics.Create( ACanvas );


  // Clear the screen with a blue background.
  AGraphics.Clear( aclBlue );
end;

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox