ImageSource.PixelsToDIPs(Double, Int32) 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.
Convertit les pixels en ADRESSES IP de manière cohérente avec MIL.
protected:
static double PixelsToDIPs(double dpi, int pixels);
protected static double PixelsToDIPs(double dpi, int pixels);
static member PixelsToDIPs : double * int -> double
Protected Shared Function PixelsToDIPs (dpi As Double, pixels As Integer) As Double
Paramètres
- dpi
- Double
Largeur de la bitmap, en points par pouce.
- pixels
- Int32
Largeur de la bitmap, en pixels.
Retours
Taille naturelle de la bitmap en pixels indépendants de l’appareil MIL (DIPs, ou 1/96").