Language

PixelFormat.FormatHasAlpha(Format) Method

Definition

Checks whether the specified format code is classified as alpha-capable.

[Android.Runtime.Register("formatHasAlpha", "(I)Z", "")]
public static bool FormatHasAlpha(Android.Graphics.Format format);
[<Android.Runtime.Register("formatHasAlpha", "(I)Z", "")>]
static member FormatHasAlpha : Android.Graphics.Format -> bool

Parameters

format
Format

Value is one of the following: RGBA_8888; RGBX_8888; RGBA_F16; RGBA_1010102; RGB_888; RGB_565

Returns

true for an alpha-bearing format or the transparent or translucent format selectors; otherwise, false.

Attributes

Remarks

Android reference for android.graphics.PixelFormat.formatHasAlpha.

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