Class Canvas
public class Canvas : JVMBridgeBase<Canvas>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
- Inheritance
-
Canvas
- Implements
- Derived
- Extension Methods
Constructors
Canvas()
public Canvas()
Canvas(Bitmap)
public Canvas(Bitmap arg0)
Parameters
Canvas(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Canvas(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
Properties
ALL_SAVE_FLAG
public static int ALL_SAVE_FLAG { get; set; }
Property Value
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements java.lang.AutoCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Methods
ClipOutPath(Path)
public bool ClipOutPath(Path arg0)
Parameters
Returns
ClipOutRect(Rect)
public bool ClipOutRect(Rect arg0)
Parameters
Returns
ClipOutRect(RectF)
public bool ClipOutRect(RectF arg0)
Parameters
Returns
ClipOutRect(int, int, int, int)
public bool ClipOutRect(int arg0, int arg1, int arg2, int arg3)
Parameters
Returns
ClipOutRect(float, float, float, float)
public bool ClipOutRect(float arg0, float arg1, float arg2, float arg3)
Parameters
Returns
ClipOutShader(Shader)
public void ClipOutShader(Shader arg0)
Parameters
ClipPath(Path)
https://developer.android.com/reference/android/graphics/Canvas.html#clipPath(android.graphics.Path)
public bool ClipPath(Path arg0)
Parameters
Returns
ClipPath(Path, Op)
[Obsolete("Deprecated in JVM")]
public bool ClipPath(Path arg0, Region.Op arg1)
Parameters
Returns
ClipRect(Rect)
https://developer.android.com/reference/android/graphics/Canvas.html#clipRect(android.graphics.Rect)
public bool ClipRect(Rect arg0)
Parameters
Returns
ClipRect(Rect, Op)
[Obsolete("Deprecated in JVM")]
public bool ClipRect(Rect arg0, Region.Op arg1)
Parameters
Returns
ClipRect(RectF)
public bool ClipRect(RectF arg0)
Parameters
Returns
ClipRect(RectF, Op)
[Obsolete("Deprecated in JVM")]
public bool ClipRect(RectF arg0, Region.Op arg1)
Parameters
Returns
ClipRect(int, int, int, int)
public bool ClipRect(int arg0, int arg1, int arg2, int arg3)
Parameters
Returns
ClipRect(float, float, float, float)
public bool ClipRect(float arg0, float arg1, float arg2, float arg3)
Parameters
Returns
ClipRect(float, float, float, float, Op)
[Obsolete("Deprecated in JVM")]
public bool ClipRect(float arg0, float arg1, float arg2, float arg3, Region.Op arg4)
Parameters
Returns
ClipShader(Shader)
public void ClipShader(Shader arg0)
Parameters
Concat(Matrix)
https://developer.android.com/reference/android/graphics/Canvas.html#concat(android.graphics.Matrix)
public void Concat(Matrix arg0)
Parameters
Concat(Matrix44)
public void Concat(Matrix44 arg0)
Parameters
CreatePoolableInstance()
HPA initializer for Canvas()
public static Canvas CreatePoolableInstance()
Returns
CreatePoolableInstance(Bitmap)
HPA initializer for Canvas(Android.Graphics.Bitmap arg0)
public static Canvas CreatePoolableInstance(Bitmap arg0)
Parameters
arg0Bitmap
Returns
DisableZ()
public void DisableZ()
DrawARGB(int, int, int, int)
public void DrawARGB(int arg0, int arg1, int arg2, int arg3)
Parameters
DrawArc(RectF, float, float, bool, Paint)
public void DrawArc(RectF arg0, float arg1, float arg2, bool arg3, Paint arg4)
Parameters
DrawArc(float, float, float, float, float, float, bool, Paint)
public void DrawArc(float arg0, float arg1, float arg2, float arg3, float arg4, float arg5, bool arg6, Paint arg7)
Parameters
DrawBitmap(Bitmap, Matrix, Paint)
public void DrawBitmap(Bitmap arg0, Matrix arg1, Paint arg2)
Parameters
DrawBitmap(Bitmap, Rect, Rect, Paint)
public void DrawBitmap(Bitmap arg0, Rect arg1, Rect arg2, Paint arg3)
Parameters
DrawBitmap(Bitmap, Rect, RectF, Paint)
public void DrawBitmap(Bitmap arg0, Rect arg1, RectF arg2, Paint arg3)
Parameters
DrawBitmap(Bitmap, float, float, Paint)
public void DrawBitmap(Bitmap arg0, float arg1, float arg2, Paint arg3)
Parameters
DrawBitmap(int[], int, int, int, int, int, int, bool, Paint)
[Obsolete("Deprecated in JVM")]
public void DrawBitmap(int[] arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, bool arg7, Paint arg8)
Parameters
DrawBitmap(int[], int, int, float, float, int, int, bool, Paint)
[Obsolete("Deprecated in JVM")]
public void DrawBitmap(int[] arg0, int arg1, int arg2, float arg3, float arg4, int arg5, int arg6, bool arg7, Paint arg8)
Parameters
DrawBitmapMesh(Bitmap, int, int, float[], int, int[], int, Paint)
public void DrawBitmapMesh(Bitmap arg0, int arg1, int arg2, float[] arg3, int arg4, int[] arg5, int arg6, Paint arg7)
Parameters
DrawCircle(float, float, float, Paint)
public void DrawCircle(float arg0, float arg1, float arg2, Paint arg3)
Parameters
DrawColor(int)
public void DrawColor(int arg0)
Parameters
DrawColor(int, BlendMode)
public void DrawColor(int arg0, BlendMode arg1)
Parameters
DrawColor(int, Mode)
public void DrawColor(int arg0, PorterDuff.Mode arg1)
Parameters
arg0intarg1PorterDuff.Mode
DrawColor(long)
public void DrawColor(long arg0)
Parameters
DrawColor(long, BlendMode)
public void DrawColor(long arg0, BlendMode arg1)
Parameters
DrawDoubleRoundRect(RectF, float, float, RectF, float, float, Paint)
public void DrawDoubleRoundRect(RectF arg0, float arg1, float arg2, RectF arg3, float arg4, float arg5, Paint arg6)
Parameters
DrawDoubleRoundRect(RectF, float[], RectF, float[], Paint)
public void DrawDoubleRoundRect(RectF arg0, float[] arg1, RectF arg2, float[] arg3, Paint arg4)
Parameters
DrawGlyphs(int[], int, float[], int, int, Font, Paint)
public void DrawGlyphs(int[] arg0, int arg1, float[] arg2, int arg3, int arg4, Font arg5, Paint arg6)
Parameters
DrawLine(float, float, float, float, Paint)
public void DrawLine(float arg0, float arg1, float arg2, float arg3, Paint arg4)
Parameters
DrawLines(float[], Paint)
public void DrawLines(float[] arg0, Paint arg1)
Parameters
DrawLines(float[], int, int, Paint)
public void DrawLines(float[] arg0, int arg1, int arg2, Paint arg3)
Parameters
DrawMesh(Mesh, BlendMode, Paint)
public void DrawMesh(Mesh arg0, BlendMode arg1, Paint arg2)
Parameters
DrawOval(RectF, Paint)
public void DrawOval(RectF arg0, Paint arg1)
Parameters
DrawOval(float, float, float, float, Paint)
public void DrawOval(float arg0, float arg1, float arg2, float arg3, Paint arg4)
Parameters
DrawPaint(Paint)
public void DrawPaint(Paint arg0)
Parameters
DrawPatch(NinePatch, Rect, Paint)
public void DrawPatch(NinePatch arg0, Rect arg1, Paint arg2)
Parameters
DrawPatch(NinePatch, RectF, Paint)
public void DrawPatch(NinePatch arg0, RectF arg1, Paint arg2)
Parameters
DrawPath(Path, Paint)
public void DrawPath(Path arg0, Paint arg1)
Parameters
DrawPicture(Picture)
public void DrawPicture(Picture arg0)
Parameters
DrawPicture(Picture, Rect)
public void DrawPicture(Picture arg0, Rect arg1)
Parameters
DrawPicture(Picture, RectF)
public void DrawPicture(Picture arg0, RectF arg1)
Parameters
DrawPoint(float, float, Paint)
public void DrawPoint(float arg0, float arg1, Paint arg2)
Parameters
DrawPoints(float[], Paint)
public void DrawPoints(float[] arg0, Paint arg1)
Parameters
DrawPoints(float[], int, int, Paint)
public void DrawPoints(float[] arg0, int arg1, int arg2, Paint arg3)
Parameters
DrawPosText(String, float[], Paint)
[Obsolete("Deprecated in JVM")]
public void DrawPosText(String arg0, float[] arg1, Paint arg2)
Parameters
DrawPosText(char[], int, int, float[], Paint)
[Obsolete("Deprecated in JVM")]
public void DrawPosText(char[] arg0, int arg1, int arg2, float[] arg3, Paint arg4)
Parameters
DrawRGB(int, int, int)
public void DrawRGB(int arg0, int arg1, int arg2)
Parameters
DrawRect(Rect, Paint)
public void DrawRect(Rect arg0, Paint arg1)
Parameters
DrawRect(RectF, Paint)
public void DrawRect(RectF arg0, Paint arg1)
Parameters
DrawRect(float, float, float, float, Paint)
public void DrawRect(float arg0, float arg1, float arg2, float arg3, Paint arg4)
Parameters
DrawRegion(Region, Paint)
public void DrawRegion(Region arg0, Paint arg1)
Parameters
DrawRenderNode(RenderNode)
public void DrawRenderNode(RenderNode arg0)
Parameters
arg0RenderNode
DrawRoundRect(RectF, float, float, Paint)
public void DrawRoundRect(RectF arg0, float arg1, float arg2, Paint arg3)
Parameters
DrawRoundRect(float, float, float, float, float, float, Paint)
public void DrawRoundRect(float arg0, float arg1, float arg2, float arg3, float arg4, float arg5, Paint arg6)
Parameters
DrawText(CharSequence, int, int, float, float, Paint)
public void DrawText(CharSequence arg0, int arg1, int arg2, float arg3, float arg4, Paint arg5)
Parameters
DrawText(String, int, int, float, float, Paint)
public void DrawText(String arg0, int arg1, int arg2, float arg3, float arg4, Paint arg5)
Parameters
DrawText(String, float, float, Paint)
public void DrawText(String arg0, float arg1, float arg2, Paint arg3)
Parameters
DrawText(char[], int, int, float, float, Paint)
public void DrawText(char[] arg0, int arg1, int arg2, float arg3, float arg4, Paint arg5)
Parameters
DrawTextOnPath(String, Path, float, float, Paint)
public void DrawTextOnPath(String arg0, Path arg1, float arg2, float arg3, Paint arg4)
Parameters
DrawTextOnPath(char[], int, int, Path, float, float, Paint)
public void DrawTextOnPath(char[] arg0, int arg1, int arg2, Path arg3, float arg4, float arg5, Paint arg6)
Parameters
DrawTextRun(MeasuredText, int, int, int, int, float, float, bool, Paint)
public void DrawTextRun(MeasuredText arg0, int arg1, int arg2, int arg3, int arg4, float arg5, float arg6, bool arg7, Paint arg8)
Parameters
DrawTextRun(CharSequence, int, int, int, int, float, float, bool, Paint)
public void DrawTextRun(CharSequence arg0, int arg1, int arg2, int arg3, int arg4, float arg5, float arg6, bool arg7, Paint arg8)
Parameters
DrawTextRun(char[], int, int, int, int, float, float, bool, Paint)
public void DrawTextRun(char[] arg0, int arg1, int arg2, int arg3, int arg4, float arg5, float arg6, bool arg7, Paint arg8)
Parameters
DrawVertices(VertexMode, int, float[], int, float[], int, int[], int, short[], int, int, Paint)
public void DrawVertices(Canvas.VertexMode arg0, int arg1, float[] arg2, int arg3, float[] arg4, int arg5, int[] arg6, int arg7, short[] arg8, int arg9, int arg10, Paint arg11)
Parameters
arg0Canvas.VertexModearg1intarg2float[]arg3intarg4float[]arg5intarg6int[]arg7intarg8short[]arg9intarg10intarg11Paint
EnableZ()
public void EnableZ()
GetClipBounds()
public Rect GetClipBounds()
Returns
GetClipBounds(Rect)
public bool GetClipBounds(Rect arg0)
Parameters
Returns
GetDensity()
public int GetDensity()
Returns
GetDrawFilter()
public DrawFilter GetDrawFilter()
Returns
GetHeight()
public int GetHeight()
Returns
GetMatrix()
[Obsolete("Deprecated in JVM")]
public Matrix GetMatrix()
Returns
GetMatrix(Matrix)
[Obsolete("Deprecated in JVM")]
public void GetMatrix(Matrix arg0)
Parameters
GetMaximumBitmapHeight()
public int GetMaximumBitmapHeight()
Returns
GetMaximumBitmapWidth()
public int GetMaximumBitmapWidth()
Returns
GetSaveCount()
public int GetSaveCount()
Returns
GetWidth()
public int GetWidth()
Returns
IsHardwareAccelerated()
public bool IsHardwareAccelerated()
Returns
IsOpaque()
public bool IsOpaque()
Returns
QuickReject(Path)
public bool QuickReject(Path arg0)
Parameters
Returns
QuickReject(Path, EdgeType)
[Obsolete("Deprecated in JVM")]
public bool QuickReject(Path arg0, Canvas.EdgeType arg1)
Parameters
Returns
QuickReject(RectF)
public bool QuickReject(RectF arg0)
Parameters
Returns
QuickReject(RectF, EdgeType)
[Obsolete("Deprecated in JVM")]
public bool QuickReject(RectF arg0, Canvas.EdgeType arg1)
Parameters
Returns
QuickReject(float, float, float, float)
public bool QuickReject(float arg0, float arg1, float arg2, float arg3)
Parameters
Returns
QuickReject(float, float, float, float, EdgeType)
[Obsolete("Deprecated in JVM")]
public bool QuickReject(float arg0, float arg1, float arg2, float arg3, Canvas.EdgeType arg4)
Parameters
Returns
Restore()
public void Restore()
RestoreToCount(int)
public void RestoreToCount(int arg0)
Parameters
Rotate(float)
public void Rotate(float arg0)
Parameters
Rotate(float, float, float)
public void Rotate(float arg0, float arg1, float arg2)
Parameters
Save()
public int Save()
Returns
SaveLayer(RectF, Paint)
public int SaveLayer(RectF arg0, Paint arg1)
Parameters
Returns
SaveLayer(RectF, Paint, int)
[Obsolete("Deprecated in JVM")]
public int SaveLayer(RectF arg0, Paint arg1, int arg2)
Parameters
Returns
SaveLayer(float, float, float, float, Paint)
public int SaveLayer(float arg0, float arg1, float arg2, float arg3, Paint arg4)
Parameters
Returns
SaveLayer(float, float, float, float, Paint, int)
[Obsolete("Deprecated in JVM")]
public int SaveLayer(float arg0, float arg1, float arg2, float arg3, Paint arg4, int arg5)
Parameters
Returns
SaveLayerAlpha(RectF, int)
public int SaveLayerAlpha(RectF arg0, int arg1)
Parameters
Returns
SaveLayerAlpha(RectF, int, int)
[Obsolete("Deprecated in JVM")]
public int SaveLayerAlpha(RectF arg0, int arg1, int arg2)
Parameters
Returns
SaveLayerAlpha(float, float, float, float, int)
public int SaveLayerAlpha(float arg0, float arg1, float arg2, float arg3, int arg4)
Parameters
Returns
SaveLayerAlpha(float, float, float, float, int, int)
[Obsolete("Deprecated in JVM")]
public int SaveLayerAlpha(float arg0, float arg1, float arg2, float arg3, int arg4, int arg5)
Parameters
Returns
Scale(float, float)
public void Scale(float arg0, float arg1)
Parameters
Scale(float, float, float, float)
public void Scale(float arg0, float arg1, float arg2, float arg3)
Parameters
SetBitmap(Bitmap)
public void SetBitmap(Bitmap arg0)
Parameters
SetDensity(int)
public void SetDensity(int arg0)
Parameters
SetDrawFilter(DrawFilter)
public void SetDrawFilter(DrawFilter arg0)
Parameters
arg0DrawFilter
SetMatrix(Matrix)
public void SetMatrix(Matrix arg0)
Parameters
Skew(float, float)
public void Skew(float arg0, float arg1)
Parameters
Translate(float, float)
public void Translate(float arg0, float arg1)