public class GraphicsPath extends Object implements com.aspose.ms.System.IDisposable
Represents a series of connected lines and curves.
| Constructor and Description |
|---|
GraphicsPath()
Initializes a new instance of the GraphicsPath class with a FillMode value of Alternate.
|
GraphicsPath(int fillMode)
Initializes a new instance of the
GraphicsPath class with the specified
FillMode(GraphicsPath.getFillMode()/GraphicsPath.setFillMode(int)) enumeration. |
GraphicsPath(Point[] pts,
byte[] types)
Initializes a new instance of the
GraphicsPath class with the specified PathPointType and Point arrays. |
GraphicsPath(Point[] pts,
byte[] types,
int fillMode)
Initializes a new instance of the
GraphicsPath class with the specified PathPointType and Point arrays and with the specified FillMode(GraphicsPath.getFillMode()/GraphicsPath.setFillMode(int)) enumeration element.. |
GraphicsPath(PointF[] pts,
byte[] types)
Initializes a new instance of the
GraphicsPath class with the specified PathPointType and PointF arrays. |
GraphicsPath(PointF[] pts,
byte[] types,
int fillMode)
Initializes a new instance of the
GraphicsPath class with the specified PathPointType and PointF arrays and with the specified FillMode(GraphicsPath.getFillMode()/GraphicsPath.setFillMode(int)) enumeration element.. |
| Modifier and Type | Method and Description |
|---|---|
void |
addArc(float x,
float y,
float width,
float height,
float startAngle,
float sweepAngle)
Appends an elliptical arc to the current figure.
|
void |
addArc(RectangleF rect,
float startAngle,
float sweepAngle)
Appends an elliptical arc to the current figure.
|
void |
addBezier(float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4)
Adds a cubic Bézier curve to the current figure.
|
void |
addBezier(PointF pt1,
PointF pt2,
PointF pt3,
PointF pt4)
Adds a cubic Bézier curve to the current figure.
|
void |
addBeziers(Point[] points)
Adds a sequence of connected cubic Bézier curves to the current figure.
|
void |
addBeziers(PointF[] points)
Adds a sequence of connected cubic Bézier curves to the current figure.
|
void |
addClosedCurve(PointF[] points)
Adds a closed curve to this path.
|
void |
addClosedCurve(PointF[] points,
float tension)
Adds a closed curve to this path.
|
void |
addCurve(Point[] points)
Adds a spline curve to the current figure.
|
void |
addCurve(PointF[] points)
Adds a spline curve to the current figure.
|
void |
addCurve(PointF[] points,
float tension)
Adds a spline curve to the current figure.
|
void |
addCurve(PointF[] points,
int offset,
int numberOfSegments,
float tension)
Adds a spline curve to the current figure.
|
void |
addEllipse(float x,
float y,
float width,
float height)
Adds an ellipse to the current path.
|
void |
addEllipse(RectangleF rect)
Adds an ellipse to the current path.
|
void |
addLine(float x1,
float y1,
float x2,
float y2)
Appends a line segment to this GraphicsPath.
|
void |
addLine(PointF pt1,
PointF pt2)
Appends a line segment to this GraphicsPath.
|
void |
addLines(Point[] points)
Appends a series of connected line segments to the end of this
GraphicsPath. |
void |
addLines(PointF[] points)
Appends a series of connected line segments to the end of this
GraphicsPath. |
void |
addPath(GraphicsPath addingPath,
boolean connect)
Appends the specified GraphicsPath to this path.
|
void |
addPie(float x,
float y,
float width,
float height,
float startAngle,
float sweepAngle)
Adds the outline of a pie shape to this path.
|
void |
addPie(Rectangle rect,
float startAngle,
float sweepAngle)
Adds the outline of a pie shape to this path.
|
void |
addPolygon(Point[] points)
Adds a polygon to this path.
|
void |
addPolygon(PointF[] points)
Adds a polygon to this path.
|
void |
addRectangle(Rectangle rect)
Adds a rectangle to this path.
|
void |
addRectangle(RectangleF rect)
Adds a rectangle to this path.
|
void |
addRectangles(Rectangle[] rects)
Adds a series of rectangles to this path.
|
void |
addRectangles(RectangleF[] rects)
Adds a series of rectangles to this path.
|
void |
addString(String s,
FontFamily family,
int style,
float emSize,
PointF origin,
StringFormat format)
Adds a text string to this path.
|
void |
addString(String s,
FontFamily family,
int style,
float emSize,
Point origin,
StringFormat format)
Adds a text string to this path.
|
void |
addString(String s,
FontFamily family,
int style,
float emSize,
RectangleF layoutRect,
StringFormat format)
Adds a text string to this path.
|
void |
addString(String s,
FontFamily family,
int style,
float emSize,
Rectangle layoutRect,
StringFormat format)
Adds a text string to this path.
|
void |
closeAllFigures()
Closes all open figures in this path and starts a new figure.
|
void |
closeFigure()
Closes the current figure and starts a new figure.
|
Object |
deepClone()
Make a copy of the current path object.
|
void |
dispose()
Releases all resources used by this GraphicsPath.
|
void |
flatten()
Converts each curve in this path into a sequence of connected line segments.
|
void |
flatten(Matrix matrix)
Applies the specified transform and then converts each curve in this
GraphicsPath. |
void |
flatten(Matrix matrix,
float flatness)
Converts each curve in this
GraphicsPath into a sequence of connected line segments. |
RectangleF |
getBounds()
Returns a rectangle that bounds this
GraphicsPath. |
RectangleF |
getBounds(Matrix matrix)
Returns a rectangle that bounds this
GraphicsPath when this path is
transformed by the specified Matrix. |
RectangleF |
getBounds(Matrix matrix,
Pen pen)
Returns a rectangle that bounds this
GraphicsPath when the current path is
transformed by the specified Matrix and drawn with the specified Pen. |
com.aspose.imaging.Figure[] |
getFigures()
Gets the path figures.
|
int |
getFillMode()
Gets a FillMode enumeration that determines how the interiors of shapes in this GraphicsPath are filled.
|
PointF |
getLastPoint()
Gets the last point in the PathPoints array of this
GraphicsPath. |
PathData |
getPathData()
Gets a
PathData that encapsulates arrays of points and types for this GraphicsPath |
PointF[] |
getPathPoints()
Gets the points in the path.
|
byte[] |
getPathTypes()
Gets the types of the corresponding points in the
PathPoints array. |
int |
getPointCount()
Gets the number of elements in the
PathPoints or the PathTypes array. |
boolean |
isOutlineVisible(PointF point,
Pen pen)
Indicates whether the specified point is contained within (under) the outline of this
GraphicsPath when drawn with the specified Pen. |
boolean |
isVisible(float x,
float y)
Indicates whether the specified point is contained within this
GraphicsPath. |
boolean |
isVisible(float x,
float y,
Graphics graphics)
Indicates whether the specified point is contained within this
GraphicsPath, using the specified Graphics. |
boolean |
isVisible(int x,
int y)
Indicates whether the specified point is contained within this
GraphicsPath. |
boolean |
isVisible(int x,
int y,
Graphics graphics)
Indicates whether the specified point is contained within this
GraphicsPath, using the specified Graphics. |
boolean |
isVisible(Point point)
Indicates whether the specified point is contained within this
GraphicsPath. |
boolean |
isVisible(PointF point)
Indicates whether the specified point is contained within this
GraphicsPath. |
boolean |
isVisible(PointF point,
Graphics graphics)
Indicates whether the specified point is contained within this
GraphicsPath, using the specified Graphics. |
boolean |
isVisible(Point point,
Graphics graphics)
Indicates whether the specified point is contained within this
GraphicsPath, using the specified Graphics. |
void |
reset()
Empties the
drawing2d.GraphicsPath.PathPoints(GraphicsPath.getPathPoints()) and drawing2d.GraphicsPath.PathTypes(GraphicsPath.getPathTypes()) arrays
and sets the FillMode to System.Drawing.drawing2d.FillMode.Alternate. |
void |
reverse()
Reverses the order of points in the
drawing2d.GraphicsPath.PathPoints(GraphicsPath.getPathPoints()) array of this GraphicsPath. |
void |
setFillMode(int value)
Gets or sets a FillMode enumeration that determines how the interiors of shapes in this GraphicsPath are filled.
|
void |
setMarkers()
Sets a marker on this
GraphicsPath. |
void |
startFigure()
Starts a new figure without closing the current figure.
|
void |
transform(Matrix matrix)
Applies a transform matrix to this GraphicsPath.
|
void |
warp(PointF[] destPoints,
RectangleF srcRect)
Applies a warp transform, defined by a rectangle and a parallelogram, to this
GraphicsPath. |
void |
warp(PointF[] destPoints,
RectangleF srcRect,
Matrix matrix)
Applies a warp transform, defined by a rectangle and a parallelogram, to this
GraphicsPath. |
void |
warp(PointF[] destPoints,
RectangleF srcRect,
Matrix matrix,
int warpMode)
Applies a warp transform, defined by a rectangle and a parallelogram, to this
GraphicsPath. |
void |
warp(PointF[] destPoints,
RectangleF srcRect,
Matrix matrix,
int warpMode,
float flatness)
Applies a warp transform, defined by a rectangle and a parallelogram, to this
GraphicsPath. |
void |
widen(Pen pen)
Adds an additional outline to the path.
|
void |
widen(Pen pen,
Matrix matrix)
Adds an additional outline to the
GraphicsPath. |
void |
widen(Pen pen,
Matrix matrix,
float flatness)
Replaces this
GraphicsPath with curves that enclose the area that is filled when this path is drawn by the specified pen. |
public GraphicsPath()
Initializes a new instance of the GraphicsPath class with a FillMode value of Alternate.
public GraphicsPath(int fillMode)
Initializes a new instance of the GraphicsPath class with the specified
FillMode(GraphicsPath.getFillMode()/GraphicsPath.setFillMode(int)) enumeration.
fillMode - The FillMode(GraphicsPath.getFillMode()/GraphicsPath.setFillMode(int)) enumeration that determines how the interior
of this GraphicsPath is filled.public GraphicsPath(PointF[] pts, byte[] types)
Initializes a new instance of the GraphicsPath class with the specified PathPointType and PointF arrays.
pts - An array of PointF structures that defines the coordinates of the points that make up this GraphicsPath.types - An array of PathPointType enumeration elements that specifies the type of each corresponding point in the pts array.
public GraphicsPath(Point[] pts, byte[] types)
Initializes a new instance of the GraphicsPath class with the specified PathPointType and Point arrays.
pts - An array of Point structures that defines the coordinates of the points that make up this GraphicsPath.types - An array of PathPointType enumeration elements that specifies the type of each corresponding point in the pts array.
public GraphicsPath(PointF[] pts, byte[] types, int fillMode)
Initializes a new instance of the GraphicsPath class with the specified PathPointType and PointF arrays and with the specified FillMode(GraphicsPath.getFillMode()/GraphicsPath.setFillMode(int)) enumeration element..
pts - An array of PointF structures that defines the coordinates of the points that make up this GraphicsPath.types - An array of PathPointType enumeration elements that specifies the type of each corresponding point in the pts array.fillMode - A FillMode(GraphicsPath.getFillMode()/GraphicsPath.setFillMode(int)) enumeration that specifies how the interiors of shapes in this GraphicsPath are filled.public GraphicsPath(Point[] pts, byte[] types, int fillMode)
Initializes a new instance of the GraphicsPath class with the specified PathPointType and Point arrays and with the specified FillMode(GraphicsPath.getFillMode()/GraphicsPath.setFillMode(int)) enumeration element..
pts - An array of Point structures that defines the coordinates of the points that make up this GraphicsPath.types - An array of PathPointType enumeration elements that specifies the type of each corresponding point in the pts array.fillMode - A FillMode(GraphicsPath.getFillMode()/GraphicsPath.setFillMode(int)) enumeration that specifies how the interiors of shapes in this GraphicsPath are filled.public final int getFillMode()
Gets a FillMode enumeration that determines how the interiors of shapes in this GraphicsPath are filled.
public final void setFillMode(int value)
Gets or sets a FillMode enumeration that determines how the interiors of shapes in this GraphicsPath are filled.
public final PathData getPathData()
Gets a PathData that encapsulates arrays of points and types for this GraphicsPath
PathData that encapsulates arrays for both the points and types for this GraphicsPath.public final int getPointCount()
Gets the number of elements in the PathPoints or the PathTypes array.
PathPoints or
the PathTypes array.public final byte[] getPathTypes()
Gets the types of the corresponding points in the PathPoints array.
com.aspose.ms.System.ArgumentException - There are no points in the path.
Value:
An array of bytes that specifies the types of the corresponding points in the path.public final PointF[] getPathPoints()
Gets the points in the path.
PointF objects that represent the path.public final void dispose()
Releases all resources used by this GraphicsPath.
dispose in interface com.aspose.ms.System.IDisposablepublic final Object deepClone()
Make a copy of the current path object.
public final void addArc(RectangleF rect, float startAngle, float sweepAngle)
Appends an elliptical arc to the current figure.
rect - A RectangleF that represents the rectangular bounds of the ellipse from which the arc is taken.startAngle - The starting angle of the arc, measured in degrees clockwise from the x-axis.sweepAngle - The angle between startAngle and the end of the arc.public final void addArc(float x,
float y,
float width,
float height,
float startAngle,
float sweepAngle)
Appends an elliptical arc to the current figure.
x - The x coordinate.y - The y coordinate.width - The width.height - The height.startAngle - The start angle.sweepAngle - The sweep angle.public final void addBezier(PointF pt1, PointF pt2, PointF pt3, PointF pt4)
Adds a cubic Bézier curve to the current figure.
pt1 - A PointF that represents the starting point of the curve.pt2 - A PointF that represents the first control point for the curve.pt3 - A PointF that represents the second control point for the curve.pt4 - A PointF that represents the endpoint of the curve.public final void addBezier(float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4)
Adds a cubic Bézier curve to the current figure.
x1 - The x-coordinate of the starting point of the curve.y1 - The y-coordinate of the starting point of the curve.x2 - The x-coordinate of the first control point for the curve.y2 - The y-coordinate of the first control point for the curve.x3 - The x-coordinate of the second control point for the curve.y3 - The y-coordinate of the second control point for the curve.x4 - The x-coordinate of the endpoint of the curve.y4 - The y-coordinate of the endpoint of the curve.public final void addBeziers(Point[] points)
Adds a sequence of connected cubic Bézier curves to the current figure.
points - The points.public final void addBeziers(PointF[] points)
Adds a sequence of connected cubic Bézier curves to the current figure.
points - The points.public final void addClosedCurve(PointF[] points)
Adds a closed curve to this path. A cardinal spline curve is used because the curve travels through each of the points in the array.
points - An array of PointF structures that represents the points that define the curve.public final void addClosedCurve(PointF[] points, float tension)
Adds a closed curve to this path. A cardinal spline curve is used because the curve travels through each of the points in the array.
points - An array of PointF structures that represents the points that define the curve.tension - A value between from 0 through 1 that specifies the amount that the curve bends
between points, with 0 being the smallest curve (sharpest corner) and 1 being the smoothest curve.public final void addCurve(Point[] points)
Adds a spline curve to the current figure. A cardinal spline curve is used because the curve travels through each of the points in the array.
points - An array of Point structures that represents the points that define the curve.public final void addCurve(PointF[] points)
Adds a spline curve to the current figure. A cardinal spline curve is used because the curve travels through each of the points in the array.
points - An array of PointF structures that represents the points that define the curve.public final void addCurve(PointF[] points, float tension)
Adds a spline curve to the current figure.
points - An array of PointF structures that represents the points that define the curve.tension - A value that specifies the amount that the curve bends between control points.
Values greater than 1 produce unpredictable results.public final void addCurve(PointF[] points, int offset, int numberOfSegments, float tension)
Adds a spline curve to the current figure.
points - An array of PointF structures that represents the points that define the curve.offset - The index of the element in the points array that is used as the first point in the curve.numberOfSegments - The number of segments used to draw the curve. A segment can be thought of as a line connecting two points.tension - A value that specifies the amount that the curve bends between control points. Values greater than 1 produce unpredictable results.public final void addEllipse(RectangleF rect)
Adds an ellipse to the current path.
rect - A RectangleF that represents the bounding rectangle that defines the ellipse.public final void addEllipse(float x,
float y,
float width,
float height)
Adds an ellipse to the current path.
x - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.y - The y-coordinate of the upper left corner of the bounding rectangle that defines the ellipse.width - The width of the bounding rectangle that defines the ellipse.height - The height of the bounding rectangle that defines the ellipse.public final void addLine(PointF pt1, PointF pt2)
Appends a line segment to this GraphicsPath.
pt1 - A PointF that represents the starting point of the line.pt2 - A PointF that represents the endpoint of the line.public final void addLine(float x1,
float y1,
float x2,
float y2)
Appends a line segment to this GraphicsPath.
x1 - The x-coordinate of the starting point of the line.y1 - The y-coordinate of the starting point of the line.x2 - The x-coordinate of the endpoint of the line.y2 - The y-coordinate of the endpoint of the line.public final void addLines(PointF[] points)
Appends a series of connected line segments to the end of this GraphicsPath.
points - An array of PointF structures that represents
the points that define the line segments to add.public final void addLines(Point[] points)
Appends a series of connected line segments to the end of this GraphicsPath.
points - An array of Point structures that represents the points
that define the line segments to add.public final void addPath(GraphicsPath addingPath, boolean connect)
Appends the specified GraphicsPath to this path.
addingPath - The GraphicsPath to add.connect - A Boolean value that specifies whether the first figure in the added path
is part of the last figure in this path. A value of true specifies that (if possible)
the first figure in the added path is part of the last figure in this path.
A value of false specifies that the first figure in the added path
is separate from the last figure in this path.public final void addPie(Rectangle rect, float startAngle, float sweepAngle)
Adds the outline of a pie shape to this path.
rect - A Rectangle that represents the bounding rectangle that defines the ellipse from which the pie is drawn.startAngle - The starting angle for the pie section, measured in degrees clockwise from the x-axis.sweepAngle - The angle between startAngle and the end of the pie section, measured in degrees clockwise from startAngle.public final void addPie(float x,
float y,
float width,
float height,
float startAngle,
float sweepAngle)
Adds the outline of a pie shape to this path.
x - The x-coordinate of the upper-left corner of the bounding rectangle
that defines the ellipse from which the pie is drawn.y - The y-coordinate of the upper-left corner of the bounding rectangle
that defines the ellipse from which the pie is drawn.width - The width of the bounding rectangle that defines the ellipse
from which the pie is drawn.height - The height of the bounding rectangle that defines the ellipse
from which the pie is drawn.startAngle - The starting angle for the pie section,
measured in degrees clockwise from the x-axis.sweepAngle - The angle between startAngle and the end of the pie section,
measured in degrees clockwise from startAngle.public final void addPolygon(PointF[] points)
Adds a polygon to this path.
points - An array of PointF structures that defines the polygon to add.public final void addPolygon(Point[] points)
Adds a polygon to this path.
points - An array of Point structures that defines the polygon to add.public final void addRectangle(Rectangle rect)
Adds a rectangle to this path.
rect - A Rectangle that represents the rectangle to add.public final void addRectangle(RectangleF rect)
Adds a rectangle to this path.
rect - A RectangleF that represents the rectangle to add.public final void addRectangles(RectangleF[] rects)
Adds a series of rectangles to this path.
rects - An array of RectangleF structures that represents the rectangles to add.public final void addRectangles(Rectangle[] rects)
Adds a series of rectangles to this path.
rects - An array of Rectangle structures that represents the rectangles to add.public final void addString(String s, FontFamily family, int style, float emSize, Point origin, StringFormat format)
Adds a text string to this path.
s - The String to add.family - A FontFamily that represents the name of the font with which the test is drawn.style - A FontStyle enumeration that represents style information
about the text (bold, italic, and so on). This must be cast as an integer
(see the example code later in this section).emSize - The height of the EM square box that bounds the character.origin - A Point that represents the point where the text starts.format - A StringFormat that specifies text formatting information,
such as line spacing and alignment.public final void addString(String s, FontFamily family, int style, float emSize, PointF origin, StringFormat format)
Adds a text string to this path.
s - The String to add.family - A FontFamily that represents the name of the font with which the test is drawn.style - A FontStyle enumeration that represents style information
about the text (bold, italic, and so on). This must be cast as an integer
(see the example code later in this section).emSize - The height of the EM square box that bounds the character.origin - A PointF that represents the point where the text starts.format - A StringFormat that specifies text formatting information,
such as line spacing and alignment.public final void addString(String s, FontFamily family, int style, float emSize, Rectangle layoutRect, StringFormat format)
Adds a text string to this path.
s - The String to add.family - A FontFamily that represents the name of the font with which the test is drawn.style - A FontStyle enumeration that represents style information about the text
(bold, italic, and so on). This must be cast as an integer (see the example code later in this section).emSize - The height of the EM square box that bounds the character.layoutRect - A Rectangle that represents the rectangle that bounds the text.format - A StringFormat that specifies text formatting information,
such as line spacing and alignment.public final void addString(String s, FontFamily family, int style, float emSize, RectangleF layoutRect, StringFormat format)
Adds a text string to this path.
s - The String to add.family - A FontFamily that represents the name of the font with which the test is drawn.style - A FontStyle enumeration that represents style information about the text
(bold, italic, and so on). This must be cast as an integer (see the example code later in this section).emSize - The height of the EM square box that bounds the character.layoutRect - A RectangleF that represents the rectangle that bounds the text.format - A StringFormat that specifies text formatting information,
such as line spacing and alignment.public final void startFigure()
Starts a new figure without closing the current figure. All subsequent points added to the path are added to this new figure.
public final void closeFigure()
Closes the current figure and starts a new figure. If the current figure contains a sequence of connected lines and curves, the method closes the loop by connecting a line from the endpoint to the starting point.
public final void transform(Matrix matrix)
Applies a transform matrix to this GraphicsPath.
matrix - A Matrix that represents the transformation to apply.public final RectangleF getBounds()
Returns a rectangle that bounds this GraphicsPath.
RectangleF that represents a rectangle that bounds
this GraphicsPath.public final RectangleF getBounds(Matrix matrix)
Returns a rectangle that bounds this GraphicsPath when this path is
transformed by the specified Matrix.
matrix - The Matrix that specifies a transformation
to be applied to this path before the bounding rectangle is calculated.
This path is not permanently transformed; the transformation is used only during the process
of calculating the bounding rectangle.RectangleF that represents a rectangle that bounds
this GraphicsPath.public final RectangleF getBounds(Matrix matrix, Pen pen)
Returns a rectangle that bounds this GraphicsPath when the current path is
transformed by the specified Matrix and drawn with the specified Pen.
matrix - The Matrix that specifies a transformation to be applied to this path
before the bounding rectangle is calculated. This path is not permanently transformed;
the transformation is used only during the process of calculating the bounding rectangle.pen - The Pen with which to draw the GraphicsPath.RectangleF that represents a rectangle that bounds this
GraphicsPath.public final PointF getLastPoint()
Gets the last point in the PathPoints array of this GraphicsPath.
GraphicsPath.public final void flatten()
Converts each curve in this path into a sequence of connected line segments.
public final void flatten(Matrix matrix)
Applies the specified transform and then converts each curve in this GraphicsPath.
matrix - A Matrix by which to transform this GraphicsPath before flattening.public final void flatten(Matrix matrix, float flatness)
Converts each curve in this GraphicsPath into a sequence of connected line segments.
matrix - A Matrix by which to transform this GraphicsPath before flattening.flatness - Specifies the maximum permitted error between the curve and its flattened approximation. A value of 0.25 is the default. Reducing the flatness value will increase the number of line segments in the approximation.public final void widen(Pen pen)
Adds an additional outline to the path.
pen - A Pen that specifies the width between the original outline of the path and the new outline this method creates.com.aspose.ms.System.NotImplementedException - Method not implemented.public final void widen(Pen pen, Matrix matrix)
Adds an additional outline to the GraphicsPath.
public final void widen(Pen pen, Matrix matrix, float flatness)
Replaces this GraphicsPath with curves that enclose the area that is filled when this path is drawn by the specified pen.
pen - A Pen that specifies the width between the original outline of the path and the new outline this method creates.matrix - A Matrix that specifies a transform to apply to the path before widening.flatness - A value that specifies the flatness for curves.
flatness parameter.
public final void closeAllFigures()
Closes all open figures in this path and starts a new figure. It closes each open figure by connecting a line from its endpoint to its starting point.
com.aspose.ms.System.NotImplementedException - Method not implemented.public final void reset()
Empties the drawing2d.GraphicsPath.PathPoints(GraphicsPath.getPathPoints()) and drawing2d.GraphicsPath.PathTypes(GraphicsPath.getPathTypes()) arrays
and sets the FillMode to System.Drawing.drawing2d.FillMode.Alternate.
public final void reverse()
Reverses the order of points in the drawing2d.GraphicsPath.PathPoints(GraphicsPath.getPathPoints()) array of this GraphicsPath.
public final void setMarkers()
Sets a marker on this GraphicsPath.
public final boolean isOutlineVisible(PointF point, Pen pen)
Indicates whether the specified point is contained within (under) the outline of this GraphicsPath when drawn with the specified Pen.
point - A PointF that specifies the location to test.pen - The Pen to test.true if the specified point is contained within the outline of this GraphicsPath when drawn with the specified Pen; otherwise, false.public final boolean isVisible(float x,
float y)
Indicates whether the specified point is contained within this GraphicsPath.
x - The X coordinate of the point to test.y - The Y coordinate of the point to test.true if the specified point is contained within this GraphicsPath; otherwise, false.public final boolean isVisible(float x,
float y,
Graphics graphics)
Indicates whether the specified point is contained within this GraphicsPath, using the specified Graphics.
x - The X coordinate of the point to test.y - The Y coordinate of the point to test.graphics - The GraphicsPath for which to test visibility.true if the specified point is contained within this GraphicsPath; otherwise, false.public final boolean isVisible(int x,
int y)
Indicates whether the specified point is contained within this GraphicsPath.
x - The X coordinate of the point to test.y - The Y coordinate of the point to test.true if the specified point is contained within this GraphicsPath; otherwise, false.public final boolean isVisible(int x,
int y,
Graphics graphics)
Indicates whether the specified point is contained within this GraphicsPath, using the specified Graphics.
x - The X coordinate of the point to test.y - The Y coordinate of the point to test.graphics - The GraphicsPath for which to test visibility.true if the specified point is contained within this GraphicsPath; otherwise, false.public final boolean isVisible(Point point)
Indicates whether the specified point is contained within this GraphicsPath.
point - A Point that represents the point to test.true if the specified point is contained within this GraphicsPath; otherwise, false.public final boolean isVisible(Point point, Graphics graphics)
Indicates whether the specified point is contained within this GraphicsPath, using the specified Graphics.
point - A Point that represents the point to test.graphics - The GraphicsPath for which to test visibility.true if the specified point is contained within this GraphicsPath; otherwise, false.public final boolean isVisible(PointF point)
Indicates whether the specified point is contained within this GraphicsPath.
point - A PointF that represents the point to test.true if the specified point is contained within this GraphicsPath; otherwise, false.public final boolean isVisible(PointF point, Graphics graphics)
Indicates whether the specified point is contained within this GraphicsPath, using the specified Graphics.
point - A PointF that represents the point to test.graphics - The GraphicsPath for which to test visibility.true if the specified point is contained within this GraphicsPath; otherwise, false.public final void warp(PointF[] destPoints, RectangleF srcRect)
Applies a warp transform, defined by a rectangle and a parallelogram, to this GraphicsPath.
destPoints - An array of PointF structures that define a parallelogram to which the rectangle defined by srcRect
is transformed. The array can contain either three or four elements.
If the array contains three elements, the lower-right corner of the parallelogram is implied by the first three points.srcRect - A RectangleF that represents the rectangle that is transformed to the parallelogram defined by destPoints.public final void warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix)
Applies a warp transform, defined by a rectangle and a parallelogram, to this GraphicsPath.
destPoints - An array of PointF structures that define a parallelogram to which the rectangle defined by srcRect
is transformed. The array can contain either three or four elements.
If the array contains three elements, the lower-right corner of the parallelogram is implied by the first three points.srcRect - A RectangleF that represents the rectangle that is transformed to the parallelogram defined by destPoints.matrix - A Matrix that specifies a geometric transform to apply to the path.public final void warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix, int warpMode)
Applies a warp transform, defined by a rectangle and a parallelogram, to this GraphicsPath.
destPoints - An array of PointF structures that defines a parallelogram to which the rectangle defined by srcRect
is transformed. The array can contain either three or four elements.
If the array contains three elements, the lower-right corner of the parallelogram is implied by the first three points.srcRect - A RectangleF that represents the rectangle that is transformed to the parallelogram defined by destPoints.matrix - A Matrix that specifies a geometric transform to apply to the path.warpMode - A WarpMode enumeration that specifies whether this warp operation uses perspective or bilinear mode.public final void warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix, int warpMode, float flatness)
Applies a warp transform, defined by a rectangle and a parallelogram, to this GraphicsPath.
destPoints - An array of PointF structures that define a parallelogram to which the rectangle defined by srcRect
is transformed. The array can contain either three or four elements.
If the array contains three elements, the lower-right corner of the parallelogram is implied by the first three points.srcRect - A RectangleF that represents the rectangle that is transformed to the parallelogram defined by destPoints.matrix - A Matrix that specifies a geometric transform to apply to the path.warpMode - A WarpMode enumeration that specifies whether this warp operation uses perspective or bilinear mode.flatness - A value from 0 through 1 that specifies how flat the resulting path is. For more information, see the M:System.Drawing.drawing2d.GraphicsPath.Flatten methods.public com.aspose.imaging.Figure[] getFigures()
Gets the path figures.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.