Udostępnij za pośrednictwem


Window.SetFormat(Format) Method

Definition

Set the format of window, as per the PixelFormat types.

[Android.Runtime.Register("setFormat", "(I)V", "GetSetFormat_IHandler")]
public virtual void SetFormat (Android.Graphics.Format format);
[<Android.Runtime.Register("setFormat", "(I)V", "GetSetFormat_IHandler")>]
abstract member SetFormat : Android.Graphics.Format -> unit
override this.SetFormat : Android.Graphics.Format -> unit

Parameters

format
Format

The new window format (see PixelFormat). Use PixelFormat.UNKNOWN to allow the Window to select the format.

Attributes

Remarks

Set the format of window, as per the PixelFormat types. This overrides the default format that is selected by the Window based on its window decorations.

Java documentation for android.view.Window.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