次の方法で共有


ISurfaceHolder.UnlockCanvasAndPost(Canvas) Method

Definition

Finish editing pixels in the surface.

[Android.Runtime.Register("unlockCanvasAndPost", "(Landroid/graphics/Canvas;)V", "GetUnlockCanvasAndPost_Landroid_graphics_Canvas_Handler:Android.Views.ISurfaceHolderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void UnlockCanvasAndPost (Android.Graphics.Canvas? canvas);
[<Android.Runtime.Register("unlockCanvasAndPost", "(Landroid/graphics/Canvas;)V", "GetUnlockCanvasAndPost_Landroid_graphics_Canvas_Handler:Android.Views.ISurfaceHolderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member 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.SurfaceHolder.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