ISurfaceHolder.LockHardwareCanvas Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Just like #lockCanvas()
but the returned canvas is hardware-accelerated.
[Android.Runtime.Register("lockHardwareCanvas", "()Landroid/graphics/Canvas;", "GetLockHardwareCanvasHandler:Android.Views.ISurfaceHolder, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual Android.Graphics.Canvas? LockHardwareCanvas ();
[<Android.Runtime.Register("lockHardwareCanvas", "()Landroid/graphics/Canvas;", "GetLockHardwareCanvasHandler:Android.Views.ISurfaceHolder, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member LockHardwareCanvas : unit -> Android.Graphics.Canvas
override this.LockHardwareCanvas : unit -> Android.Graphics.Canvas
Returns
Canvas Use to draw into the surface.
- Attributes
Remarks
Just like #lockCanvas()
but the returned canvas is hardware-accelerated.
See the unsupported drawing operations for a list of what is and isn't supported in a hardware-accelerated canvas.
Java documentation for android.view.SurfaceHolder.lockHardwareCanvas()
.
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.