public final class GraphicsPathIterator extends Object implements com.aspose.ms.System.IDisposable
Provides the ability to iterate through subpaths in a GraphicsPath and test the types of shapes contained in each subpath.
This class cannot be inherited.
IDisposable| Constructor and Description |
|---|
GraphicsPathIterator(GraphicsPath path)
Initializes a new instance of the
GraphicsPathIterator class. |
| Modifier and Type | Method and Description |
|---|---|
int |
copyData(PointF[][] points,
byte[][] types,
int startIndex,
int endIndex)
Copies the GraphicsPath.PathPoints property and GraphicsPath.PathTypes property arrays
of the associated
GraphicsPath into the two specified arrays. |
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
int |
enumerate(PointF[][] points,
byte[][] types)
Copies the GraphicsPath.PathPoints property and GraphicsPath.PathTypes property arrays
of the associated
GraphicsPath into the two specified arrays. |
int |
getCount()
Gets the number of points in the path.
|
int |
getSubpathCount()
Gets the number of subpaths in the path.
|
boolean |
hasCurve()
Indicates whether the path associated with this
GraphicsPathIterator contains a curve. |
int |
nextMarker(GraphicsPath path)
This
GraphicsPathIterator object has a GraphicsPath object associated with it. |
int |
nextMarker(int[] startIndex,
int[] endIndex)
Increments the
GraphicsPathIterator to the next marker in the path
and returns the start and stop indexes by way of the [out] parameters. |
int |
nextPathType(byte[] pathType,
int[] startIndex,
int[] endIndex)
Gets the starting index and the ending index of the next group of data points that all have the same type.
|
int |
nextSubpath(GraphicsPath path,
boolean[] isClosed)
Gets the next figure (subpath) from the associated path of this
GraphicsPathIterator. |
int |
nextSubpath(int[] startIndex,
int[] endIndex,
boolean[] isClosed)
Moves the
GraphicsPathIterator to the next subpath in the path. |
void |
rewind()
Rewinds this
GraphicsPathIterator to the beginning of its associated path. |
public GraphicsPathIterator(GraphicsPath path)
Initializes a new instance of the GraphicsPathIterator class.
path - The GraphicsPath object for which this helper class is to be initialized.public int getCount()
Gets the number of points in the path.
public int getSubpathCount()
Gets the number of subpaths in the path.
public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose in interface com.aspose.ms.System.IDisposablepublic int copyData(PointF[][] points, byte[][] types, int startIndex, int endIndex)
Copies the GraphicsPath.PathPoints property and GraphicsPath.PathTypes property arrays
of the associated GraphicsPath into the two specified arrays.
points - Upon return, contains an array of System.Drawing.PointF structures that represents the points in the path.types - Upon return, contains an array of bytes that represents the types of points in the path.startIndex - Specifies the starting index of the arrays.endIndex - Specifies the ending index of the arrays.public int enumerate(PointF[][] points, byte[][] types)
Copies the GraphicsPath.PathPoints property and GraphicsPath.PathTypes property arrays
of the associated GraphicsPath into the two specified arrays.
points - Upon return, contains an array of System.Drawing.PointF structures that represents the points in the path.types - Upon return, contains an array of bytes that represents the types of points in the path.public boolean hasCurve()
Indicates whether the path associated with this GraphicsPathIterator contains a curve.
public int nextMarker(int[] startIndex,
int[] endIndex)
Increments the GraphicsPathIterator to the next marker in the path
and returns the start and stop indexes by way of the [out] parameters.
startIndex - [out] The integer reference supplied to this parameter receives
the index of the point that starts a subpath.endIndex - [out] The integer reference supplied to this parameter receives
the index of the point that ends the subpath to which startIndex points.public int nextMarker(GraphicsPath path)
This GraphicsPathIterator object has a GraphicsPath object associated with it.
This method increments the associated GraphicsPath to the next marker in its path
and copies all the points contained between the current marker and the next marker (or end of path)
to a second GraphicsPath object passed in to the parameter.
path - The GraphicsPath object to which the points will be copied.public int nextPathType(byte[] pathType,
int[] startIndex,
int[] endIndex)
Gets the starting index and the ending index of the next group of data points that all have the same type.
pathType - [out] Receives the point type shared by all points in the group. Possible types can be retrieved from the PathPointType enumeration.startIndex - [out] Receives the starting index of the group of points.endIndex - [out] Receives the ending index of the group of points.public int nextSubpath(int[] startIndex,
int[] endIndex,
boolean[] isClosed)
Moves the GraphicsPathIterator to the next subpath in the path. The start index and end index of the next subpath are contained in the [out] parameters.
startIndex - [out] Receives the starting index of the next subpath.endIndex - [out] Receives the ending index of the next subpath.isClosed - [out] Indicates whether the subpath is closed.public int nextSubpath(GraphicsPath path, boolean[] isClosed)
Gets the next figure (subpath) from the associated path of this GraphicsPathIterator.
path - A GraphicsPath that is to have its data points set to match the data points of the retrieved figure (subpath) for this iterator.isClosed - [out] Indicates whether the current subpath is closed. It is true if the if the figure is closed, otherwise it is false.public void rewind()
Rewinds this GraphicsPathIterator to the beginning of its associated path.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.