Method function IGDIPlus.IGPGraphicsPathIterator.HasCurve() : Boolean

From Mitov Wiki Doc
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: IGPGraphicsPathIterator

Contents

Syntax

Delphi:

function HasCurve() : Boolean;

C++ Builder:

bool __fastcall HasCurve();

Visual C++ (MFC):

HasCurve();

Summary

Determines whether the path has any curves.

Description

Call this method to determine whether the path has any curves. Remarks All curves in a path are stored as sequences of Bézier splines. For example, when you add an ellipse to a path, you specify the upper-left corner, the width, and the height of the ellipse's bounding rectangle. Those numbers (upper-left corner, width, and height) are not stored in the path; instead; the ellipse is converted to a sequence of four Bézier splines. The path stores the endpoints and control points of those Bézier splines.


A path stores an array of data points, each of which belongs to a line or a Bézier spline. If some of the points in the array belong to Bézier splines, then HasCurve returns TRUE. If all points in the array belong to lines, then HasCurve returns FALSE.


Certain methods flatten a path, which means that all the curves in the path are converted to sequences of lines. After a path has been flattened, HasCurve will always return FALSE. Flattening happens when you call the TGPGraphicsPath.Flatten, TGPGraphicsPath.Widen, or TGPGraphicsPath.Warp method of the GraphicsPath class.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox