Udostępnij za pośrednictwem


EdgeEffect.Draw(Canvas) Method

Definition

Draw into the provided canvas.

[Android.Runtime.Register("draw", "(Landroid/graphics/Canvas;)Z", "GetDraw_Landroid_graphics_Canvas_Handler")]
public virtual bool Draw (Android.Graphics.Canvas? canvas);
[<Android.Runtime.Register("draw", "(Landroid/graphics/Canvas;)Z", "GetDraw_Landroid_graphics_Canvas_Handler")>]
abstract member Draw : Android.Graphics.Canvas -> bool
override this.Draw : Android.Graphics.Canvas -> bool

Parameters

canvas
Canvas

Canvas to draw into

Returns

true if drawing should continue beyond this frame to continue the animation

Attributes

Remarks

Draw into the provided canvas. Assumes that the canvas has been rotated accordingly and the size has been set. The effect will be drawn the full width of X=0 to X=width, beginning from Y=0 and extending to some factor < 1.f of height. The effect will only be visible on a hardware canvas, e.g. RenderNode#beginRecording().

Java documentation for android.widget.EdgeEffect.draw(android.graphics.Canvas).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to