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