Path Path Class
Definition
The Path class encapsulates compound (multiple contour) geometric paths consisting of straight line segments, quadratic curves, and cubic curves.
[Android.Runtime.Register("android/graphics/Path", ApiSince=1, DoNotGenerateAcw=true)]
public class Path : Java.Lang.Object
type Path = class
inherit Object
- Inheritance
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the
Constructors
Path() Path() |
Create an empty path |
Path(IntPtr, JniHandleOwnership) Path(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Path(Path) Path(Path) |
Create a new path, copying the contents from the src path. |
Properties
Class Class |
Returns the unique instance of Class that represents this object's class. (Inherited from Object) |
Handle Handle |
The handle to the underlying Android instance. (Inherited from Object) |
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy | Inherited from Object |
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle | Inherited from Object |
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation | Inherited from Object |
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState | Inherited from Object |
IsConvex IsConvex |
Returns the path's convexity, as defined by the content of the path. |
IsEmpty IsEmpty |
Returns true if the path is empty (contains no lines or curves) |
IsInverseFillType IsInverseFillType |
Returns true if the filltype is one of the INVERSE variants |
JniIdentityHashCode JniIdentityHashCode | Inherited from Object |
JniPeerMembers JniPeerMembers | |
PeerReference PeerReference | Inherited from Object |
ThresholdClass ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThresholdType ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Methods
AddArc(RectF, Single, Single) AddArc(RectF, Single, Single) |
Add the specified arc to the path as a new contour. |
AddArc(Single, Single, Single, Single, Single, Single) AddArc(Single, Single, Single, Single, Single, Single) |
Add the specified arc to the path as a new contour. |
AddCircle(Single, Single, Single, Path+Direction) AddCircle(Single, Single, Single, Path+Direction) |
Add a closed circle contour to the path |
AddOval(RectF, Path+Direction) AddOval(RectF, Path+Direction) |
Add a closed oval contour to the path |
AddOval(Single, Single, Single, Single, Path+Direction) AddOval(Single, Single, Single, Single, Path+Direction) |
Add a closed oval contour to the path |
AddPath(Path) AddPath(Path) |
Add a copy of src to the path |
AddPath(Path, Matrix) AddPath(Path, Matrix) |
Add a copy of src to the path, transformed by matrix |
AddPath(Path, Single, Single) AddPath(Path, Single, Single) |
Add a copy of src to the path, offset by (dx,dy) |
AddRect(RectF, Path+Direction) AddRect(RectF, Path+Direction) |
Add a closed rectangle contour to the path |
AddRect(Single, Single, Single, Single, Path+Direction) AddRect(Single, Single, Single, Single, Path+Direction) |
Add a closed rectangle contour to the path |
AddRoundRect(RectF, Single, Single, Path+Direction) AddRoundRect(RectF, Single, Single, Path+Direction) |
Add a closed round-rectangle contour to the path |
AddRoundRect(RectF, Single[], Path+Direction) AddRoundRect(RectF, Single[], Path+Direction) |
Add a closed round-rectangle contour to the path. |
AddRoundRect(Single, Single, Single, Single, Single, Single, Path+Direction) AddRoundRect(Single, Single, Single, Single, Single, Single, Path+Direction) |
Add a closed round-rectangle contour to the path |
AddRoundRect(Single, Single, Single, Single, Single[], Path+Direction) AddRoundRect(Single, Single, Single, Single, Single[], Path+Direction) |
Add a closed round-rectangle contour to the path. |
Approximate(Single) Approximate(Single) | |
ArcTo(RectF, Single, Single) ArcTo(RectF, Single, Single) |
Append the specified arc to the path as a new contour. |
ArcTo(RectF, Single, Single, Boolean) ArcTo(RectF, Single, Single, Boolean) |
Append the specified arc to the path as a new contour. |
ArcTo(Single, Single, Single, Single, Single, Single, Boolean) ArcTo(Single, Single, Single, Single, Single, Single, Boolean) |
Append the specified arc to the path as a new contour. |
Clone() Clone() |
Creates and returns a copy of this |
Close() Close() |
Close the current contour. |
ComputeBounds(RectF, Boolean) ComputeBounds(RectF, Boolean) |
Compute the bounds of the control points of the path, and write the answer into bounds. |
CubicTo(Single, Single, Single, Single, Single, Single) CubicTo(Single, Single, Single, Single, Single, Single) |
Add a cubic bezier from the last point, approaching control points (x1,y1) and (x2,y2), and ending at (x3,y3). |
Dispose() Dispose() | Inherited from Object |
Dispose(Boolean) Dispose(Boolean) | Inherited from Object |
Equals(Object) Equals(Object) |
Compares this instance with the specified object and indicates if they are equal. (Inherited from Object) |
GetFillType() GetFillType() |
Return the path's fill type. |
GetHashCode() GetHashCode() |
Returns an integer hash code for this object. (Inherited from Object) |
IncReserve(Int32) IncReserve(Int32) |
Hint to the path to prepare for adding more points. |
InvokeOp(Path, Path+Op) InvokeOp(Path, Path+Op) |
Set this path to the result of applying the Op to this path and the specified path. |
InvokeOp(Path, Path, Path+Op) InvokeOp(Path, Path, Path+Op) |
Set this path to the result of applying the Op to the two specified paths. |
IsRect(RectF) IsRect(RectF) |
Returns true if the path specifies a rectangle. |
JavaFinalize() JavaFinalize() |
Invoked when the garbage collector has detected that this instance is no longer reachable. (Inherited from Object) |
LineTo(Single, Single) LineTo(Single, Single) |
Add a line from the last point to the specified point (x,y). |
MoveTo(Single, Single) MoveTo(Single, Single) |
Set the beginning of the next contour to the point (x,y). |
Notify() Notify() |
Causes a thread which is waiting on this object's monitor (by means of
calling one of the |
NotifyAll() NotifyAll() |
Causes all threads which are waiting on this object's monitor (by means
of calling one of the |
Offset(Single, Single) Offset(Single, Single) |
Offset the path by (dx,dy) |
Offset(Single, Single, Path) Offset(Single, Single, Path) |
Offset the path by (dx,dy) |
QuadTo(Single, Single, Single, Single) QuadTo(Single, Single, Single, Single) |
Add a quadratic bezier from the last point, approaching control point (x1,y1), and ending at (x2,y2). |
RCubicTo(Single, Single, Single, Single, Single, Single) RCubicTo(Single, Single, Single, Single, Single, Single) |
Same as cubicTo, but the coordinates are considered relative to the current point on this contour. |
Reset() Reset() |
Clear any lines and curves from the path, making it empty. |
Rewind() Rewind() |
Rewinds the path: clears any lines and curves from the path but keeps the internal data structure for faster reuse. |
RLineTo(Single, Single) RLineTo(Single, Single) |
Same as lineTo, but the coordinates are considered relative to the last point on this contour. |
RMoveTo(Single, Single) RMoveTo(Single, Single) |
Set the beginning of the next contour relative to the last point on the previous contour. |
RQuadTo(Single, Single, Single, Single) RQuadTo(Single, Single, Single, Single) |
Same as quadTo, but the coordinates are considered relative to the last point on this contour. |
Set(Path) Set(Path) |
Replace the contents of this with the contents of src. |
SetFillType(Path+FillType) SetFillType(Path+FillType) |
Set the path's fill type. |
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetLastPoint(Single, Single) SetLastPoint(Single, Single) |
Sets the last point of the path. |
ToArray<T>() ToArray<T>() | Inherited from Object |
ToggleInverseFillType() ToggleInverseFillType() |
Toggles the INVERSE state of the filltype |
ToString() ToString() |
Returns a string containing a concise, human-readable description of this object. (Inherited from Object) |
Transform(Matrix) Transform(Matrix) |
Transform the points in this path by matrix. |
Transform(Matrix, Path) Transform(Matrix, Path) |
Transform the points in this path by matrix, and write the answer into dst. |
UnregisterFromRuntime() UnregisterFromRuntime() | Inherited from Object |
Wait() Wait() |
Causes the calling thread to wait until another thread calls the |
Wait(Int64) Wait(Int64) |
Causes the calling thread to wait until another thread calls the |
Wait(Int64, Int32) Wait(Int64, Int32) |
Causes the calling thread to wait until another thread calls the |
Explicit Interface Implementations
Extension Methods
JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable) |