Method function IGDIPlus.IGPGraphicsPathIterator.NextPathType(TGPPathPointType;Integer;Integer) : Integer

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 NextPathType( pathType : TGPPathPointType, startIndex : Integer, endIndex : Integer ) : Integer;

C++ Builder:

int __fastcall NextPathType( TGPPathPointType pathType, int startIndex, int endIndex );

Visual C++ (MFC):

NextPathType(  pathType,  startIndex,  endIndex );

Summary

Returns the starting index and the ending index of the next group of data points that all have the same type.

Description

Call this method to get the starting index and the ending index of the next group of data points that all have the same type. Remarks A path has an array of data points that define its lines and curves. All curves in the path are represented as Bézier splines, so a given point in the array has one of two types: PathPointTypeLine or PathPointTypeBezier.


The first time you call the NextSubpath method of an iterator, it gets the starting and ending indices of the first group of points that all have the same type. The second time, it gets the second group, and so on. Each time you call NextSubpath, it returns the number of data points in the obtained group. When there are no groups remaining, it returns 0.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox