ImageFormat.GetBitsPerPixel(ImageFormatType) Method

Definition

Use this function to retrieve the number of bits per pixel of an ImageFormat.

[Android.Runtime.Register("getBitsPerPixel", "(I)I", "")]
public static int GetBitsPerPixel (Android.Graphics.ImageFormatType format);
[<Android.Runtime.Register("getBitsPerPixel", "(I)I", "")>]
static member GetBitsPerPixel : Android.Graphics.ImageFormatType -> int

Parameters

format
ImageFormatType

format

Returns

the number of bits per pixel of the given format or -1 if the format doesn't exist or is not supported.

Attributes

Remarks

Use this function to retrieve the number of bits per pixel of an ImageFormat.

Java documentation for android.graphics.ImageFormat.getBitsPerPixel(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