Android.Views.ISurfaceHolder.SetFormat Method
Set the desired PixelFormat of the surface.

Syntax

[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.Runtime.GeneratedEnum] Android.Graphics.Format format)

See Also

Android.Graphics.PixelFormat

Parameters

format
A constant from PixelFormat.

Remarks

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

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1