ImageFormat.GetBitsPerPixel(ImageFormatType) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Utilisez cette fonction pour récupérer le nombre de bits par pixel d’un 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
Paramètres
- format
- ImageFormatType
format
Retours
nombre de bits par pixel du format donné ou -1 si le format n’existe pas ou n’est pas pris en charge.
- Attributs
Remarques
Utilisez cette fonction pour récupérer le nombre de bits par pixel d’un ImageFormat.
Java documentation pour android.graphics.ImageFormat.getBitsPerPixel(int).
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.