The members of Android.Graphics.Canvas are listed below.
See Also: Inherited members from Java.Lang.Object
Canvas() | Construct an empty raster canvas. | |
Construct a canvas with the specified bitmap to draw into. | ||
Documentation for this section has not yet been entered. |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
[read-only] | ClipBounds | Rect. Retrieve the bounds of the current clip (in local coordinates). |
Density | int. | |
DrawFilter | DrawFilter. | |
[read-only] | GL | Javax.Microedition.Khronos.Opengles.IGL. Documentation for this section has not yet been entered. |
[read-only] | Height | int. Returns the height of the current drawing layer |
[read-only] | IsHardwareAccelerated | bool. Indicates whether this Canvas uses hardware acceleration. |
[read-only] | IsOpaque | bool. Return true if the device that the current layer draws into is opaque (i.e. does not support per-pixel alpha). |
Matrix | Matrix. Return a new matrix with a copy of the canvas' current transformation matrix. | |
[read-only] | MaximumBitmapHeight | int. Returns the maximum allowed height for bitmaps drawn with this canvas. |
[read-only] | MaximumBitmapWidth | int. Returns the maximum allowed width for bitmaps drawn with this canvas. |
[read-only] | SaveCount | int. Returns the number of matrix/clip states on the Canvas' private stack. |
[read-only] | Width | int. Returns the width of the current drawing layer |
[read-only] override | ThresholdClass | IntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
[read-only] override | ThresholdType | Type. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ClipPath(Path)Intersect the current clip with the specified path. | ||
ClipPath(Path, Region.Op)Modify the current clip with the specified path. | ||
ClipRect(Rect)Intersect the current clip with the specified rectangle, which is expressed in local coordinates. | ||
ClipRect(RectF)Intersect the current clip with the specified rectangle, which is expressed in local coordinates. | ||
ClipRect(Rect, Region.Op)Modify the current clip with the specified rectangle, which is expressed in local coordinates. | ||
ClipRect(RectF, Region.Op)Modify the current clip with the specified rectangle. | ||
ClipRect(int, int, int, int)Intersect the current clip with the specified rectangle, which is expressed in local coordinates. | ||
ClipRect(float, float, float, float)Intersect the current clip with the specified rectangle, which is expressed in local coordinates. | ||
ClipRect(float, float, float, float, Region.Op)Modify the current clip with the specified rectangle, which is expressed in local coordinates. | ||
ClipRegion(Region)Intersect the current clip with the specified region. | ||
ClipRegion(Region, Region.Op)Modify the current clip with the specified region. | ||
Concat(Matrix)Preconcat the current matrix with the specified matrix. | ||
DrawArc(RectF, float, float, bool, Paint) | ||
DrawArc(float, float, float, float, float, float, bool, Paint) | ||
DrawARGB(int, int, int, int)Fill the entire canvas' bitmap (restricted to the current clip) with the specified ARGB color, using srcover porterduff mode. | ||
DrawBitmap(Bitmap, Matrix, Paint)Draw the bitmap using the specified matrix. | ||
DrawBitmap(Bitmap, Rect, Rect, Paint)Draw the specified bitmap, scaling/translating automatically to fill the destination rectangle. | ||
DrawBitmap(Bitmap, Rect, RectF, Paint)Draw the specified bitmap, scaling/translating automatically to fill the destination rectangle. | ||
DrawBitmap(Bitmap, float, float, Paint)Draw the specified bitmap, with its top/left corner at (x,y), using the specified paint, transformed by the current matrix. | ||
DrawBitmap(int[], int, int, int, int, int, int, bool, Paint)Legacy version of drawBitmap(int[] colors, ...) that took ints for x,y | ||
DrawBitmap(int[], int, int, float, float, int, int, bool, Paint)Treat the specified array of colors as a bitmap, and draw it. | ||
DrawBitmapMesh(Bitmap, int, int, float[], int, int[], int, Paint)Draw the bitmap through the mesh, where mesh vertices are evenly distributed across the bitmap. | ||
DrawCircle(float, float, float, Paint)Draw the specified circle using the specified paint. | ||
DrawColor(Color)Fill the entire canvas' bitmap (restricted to the current clip) with the specified color, using srcover porterduff mode. | ||
DrawColor(Color, PorterDuff.Mode)Fill the entire canvas' bitmap (restricted to the current clip) with the specified color and porter-duff xfermode. | ||
DrawLine(float, float, float, float, Paint)Draw a line segment with the specified start and stop x,y coordinates, using the specified paint. | ||
DrawLines(float[], Paint) | ||
DrawLines(float[], int, int, Paint)Draw a series of lines. | ||
DrawOval(RectF, Paint)Draw the specified oval using the specified paint. | ||
DrawOval(float, float, float, float, Paint)Draw the specified oval using the specified paint. | ||
DrawPaint(Paint)Fill the entire canvas' bitmap (restricted to the current clip) with the specified paint. | ||
DrawPath(Path, Paint)Draw the specified path using the specified paint. | ||
DrawPicture(Picture)Save the canvas state, draw the picture, and restore the canvas state. | ||
DrawPicture(Picture, Rect)Draw the picture, stretched to fit into the dst rectangle. | ||
DrawPicture(Picture, RectF)Draw the picture, stretched to fit into the dst rectangle. | ||
DrawPoint(float, float, Paint)Helper for drawPoints() for drawing a single point. | ||
DrawPoints(float[], Paint)Helper for drawPoints() that assumes you want to draw the entire array | ||
DrawPoints(float[], int, int, Paint)Draw a series of points. | ||
DrawPosText(string, float[], Paint)Draw the text in the array, with each character's origin specified by the pos array. | ||
DrawPosText(char[], int, int, float[], Paint)Draw the text in the array, with each character's origin specified by the pos array. | ||
DrawRect(Rect, Paint)Draw the specified Rect using the specified Paint. | ||
DrawRect(RectF, Paint)Draw the specified Rect using the specified paint. | ||
DrawRect(float, float, float, float, Paint)Draw the specified Rect using the specified paint. | ||
DrawRGB(int, int, int)Fill the entire canvas' bitmap (restricted to the current clip) with the specified RGB color, using srcover porterduff mode. | ||
DrawRoundRect(RectF, float, float, Paint)Draw the specified round-rect using the specified paint. | ||
DrawRoundRect(float, float, float, float, float, float, Paint)Draw the specified round-rect using the specified paint. | ||
DrawText(string, float, float, Paint)Draw the text, with origin at (x,y), using the specified paint. | ||
DrawText(Java.Lang.ICharSequence, int, int, float, float, Paint)Draw the specified range of text, specified by start/end, with its origin at (x,y), in the specified Paint. | ||
DrawText(char[], int, int, float, float, Paint)Draw the text, with origin at (x,y), using the specified paint. | ||
DrawText(string, int, int, float, float, Paint)Draw the text, with origin at (x,y), using the specified paint. | ||
DrawTextOnPath(string, Path, float, float, Paint)Draw the text, with origin at (x,y), using the specified paint, along the specified path. | ||
DrawTextOnPath(char[], int, int, Path, float, float, Paint)Draw the text, with origin at (x,y), using the specified paint, along the specified path. | ||
DrawVertices(Canvas.VertexMode, int, float[], int, float[], int, int[], int, short[], int, int, Paint)Draw the array of vertices, interpreted as triangles (based on mode). | ||
static | FreeGlCaches()Documentation for this section has not yet been entered. | |
GetClipBounds(Rect)Return the bounds of the current clip (in local coordinates) in the bounds parameter, and return true if it is non-empty. | ||
GetMatrix(Matrix)Return, in ctm, the current transformation matrix. | ||
QuickReject(Path, Canvas.EdgeType)Return true if the specified path, after being transformed by the current matrix, would lie completely outside of the current clip. | ||
QuickReject(RectF, Canvas.EdgeType)Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip. | ||
QuickReject(float, float, float, float, Canvas.EdgeType)Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip. | ||
Restore()This call balances a previous call to save(), and is used to remove all modifications to the matrix/clip state since the last save call. | ||
RestoreToCount(int)Efficient way to pop any calls to save() that happened after the save count reached saveCount. | ||
Rotate(float)Preconcat the current matrix with the specified rotation. | ||
Rotate(float, float, float)Preconcat the current matrix with the specified rotation. | ||
Save()Saves the current matrix and clip onto a private stack. | ||
Save(SaveFlags)Based on saveFlags, can save the current matrix and clip onto a private stack. | ||
SaveLayer(RectF, Paint)Convenience for saveLayer(bounds, paint, Canvas.ALL_SAVE_FLAG) | ||
SaveLayer(RectF, Paint, SaveFlags)This behaves the same as save(), but in addition it allocates an offscreen bitmap. | ||
SaveLayer(float, float, float, float, Paint)Convenience for saveLayer(left, top, right, bottom, paint, Canvas.ALL_SAVE_FLAG) | ||
SaveLayer(float, float, float, float, Paint, SaveFlags)Helper version of saveLayer() that takes 4 values rather than a RectF. | ||
SaveLayerAlpha(RectF, int)Convenience for saveLayerAlpha(bounds, alpha, Canvas.ALL_SAVE_FLAG) | ||
SaveLayerAlpha(RectF, int, SaveFlags)This behaves the same as save(), but in addition it allocates an offscreen bitmap. | ||
SaveLayerAlpha(float, float, float, float, int)Helper for saveLayerAlpha(left, top, right, bottom, alpha, Canvas.ALL_SAVE_FLAG) | ||
SaveLayerAlpha(float, float, float, float, int, SaveFlags)Helper for saveLayerAlpha() that takes 4 values instead of a RectF. | ||
Scale(float, float)Preconcat the current matrix with the specified scale. | ||
Scale(float, float, float, float)Preconcat the current matrix with the specified scale. | ||
SetBitmap(Bitmap)Specify a bitmap for the canvas to draw into. | ||
SetViewport(int, int)Documentation for this section has not yet been entered. | ||
Skew(float, float)Preconcat the current matrix with the specified skew. | ||
Translate(float, float)Preconcat the current matrix with the specified translation |