Compartir a través de


ISurfaceHolder.SetFormat(Format) Method

Definition

Set the desired PixelFormat of the surface.

[Android.Runtime.Register("setFormat", "(I)V", "GetSetFormat_IHandler:Android.Views.ISurfaceHolderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetFormat (Android.Graphics.Format format);
[<Android.Runtime.Register("setFormat", "(I)V", "GetSetFormat_IHandler:Android.Views.ISurfaceHolderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetFormat : Android.Graphics.Format -> unit

Parameters

format
Format

A constant from PixelFormat.

Attributes

Remarks

Set the desired PixelFormat of the surface. The default is OPAQUE. When working with a SurfaceView, this must be called from the same thread running the SurfaceView's window.

Java documentation for android.view.SurfaceHolder.setFormat(int).

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