Dela via


TextureView.UnlockCanvasAndPost(Canvas) Method

Definition

Finish editing pixels in the surface.

[Android.Runtime.Register("unlockCanvasAndPost", "(Landroid/graphics/Canvas;)V", "GetUnlockCanvasAndPost_Landroid_graphics_Canvas_Handler")]
public virtual void UnlockCanvasAndPost (Android.Graphics.Canvas canvas);
[<Android.Runtime.Register("unlockCanvasAndPost", "(Landroid/graphics/Canvas;)V", "GetUnlockCanvasAndPost_Landroid_graphics_Canvas_Handler")>]
abstract member UnlockCanvasAndPost : Android.Graphics.Canvas -> unit
override this.UnlockCanvasAndPost : Android.Graphics.Canvas -> unit

Parameters

canvas
Canvas

The Canvas previously returned by lockCanvas()

Attributes

Remarks

Finish editing pixels in the surface. After this call, the surface's current pixels will be shown on the screen, but its content is lost, in particular there is no guarantee that the content of the Surface will remain unchanged when lockCanvas() is called again.

Java documentation for android.view.TextureView.unlockCanvasAndPost(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

See also