語言

ImageFormat.GetBitsPerPixel(ImageFormatType) 方法

定義

使用此函式來取得 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

參數

format
ImageFormatType

format

傳回

該格式的每像素位元數,或 -1 若該格式不存在或不支援。

屬性

備註

使用此函式來取得 ImageFormat 的每像素位元數。

Java 文件 android.graphics.ImageFormat.getBitsPerPixel(int)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於