The methods of Android.Graphics.Canvas are listed below. For a list of all members, see the Canvas Members list.
See Also: Inherited members from Java.Lang.Object
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 |