Enum IGDIPlus.TGPFillMode

From Mitov Wiki Doc
(Difference between revisions)
Jump to: navigation, search
(Automated Syncronization with Documentation)
 
(Automated Syncronization with Documentation)
 
(13 intermediate revisions by one user not shown)
Line 30: Line 30:
 
Defines enumeration that specifies how to fill areas that are
 
Defines enumeration that specifies how to fill areas that are
 
formed when a path or curve intersects itself. This
 
formed when a path or curve intersects itself. This
enumeration is used by several methods of the TGPGraphics
+
enumeration is used by several methods of the [[Class IGDIPlus.TGPGraphics|TGPGraphics]]
 
class, including FillClosedCurve and FillPolygon, and by the
 
class, including FillClosedCurve and FillPolygon, and by the
constructors of the TGPGraphicsPath class.
+
constructors of the [[Class IGDIPlus.TGPGraphicsPath|TGPGraphicsPath]] class.
  
 
== Values ==
 
== Values ==

Latest revision as of 01:31, 7 June 2013

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.

Package: SignalLabBasicPkg

Unit: IGDIPlus

Contents

Syntax

Delphi:

type TGPFillMode = (FillModeAlternate, FillModeWinding);

C++ Builder:

enum TGPFillMode {FillModeAlternate, FillModeWinding};

Visual C++ (MFC):

enum CTGPFillMode {FillModeAlternate, FillModeWinding};

Summary

Specifies how to fill areas that are formed when a path or curve intersects itself.

Description

Defines enumeration that specifies how to fill areas that are formed when a path or curve intersects itself. This enumeration is used by several methods of the TGPGraphics class, including FillClosedCurve and FillPolygon, and by the constructors of the TGPGraphicsPath class.

Values

FillModeAlternate Specifies that areas are filled according to the even-odd parity rule. According to this rule, you can determine whether a test point is inside or outside a closed curve as follows: Draw a line from the test point to a point that is distant from the curve. If that line crosses the curve an odd number of times, the test point is inside the curve; otherwise, the test point is outside the curve.
FillModeWinding Specifies that areas are filled according to the nonzero winding rule. According to this rule, you can determine whether a test point is inside or outside a closed curve as follows: Draw a line from a test point to a point that is distant from the curve. Count the number of times the curve crosses the test line from left to right, and count the number of times the curve crosses the test line from right to left. If those two numbers are the same, the test point is outside the curve; otherwise, the test point is inside the curve.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox