ImageSource.PixelsToDIPs(Double, Int32) Metodo

Definizione

Converte pixel in DIP in una modalità che è coerente con MIL.Converts pixels to DIPs in a way that is consistent with 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

Parametri

dpi
Double

Dimensione bitmap in punti per pollice.Width of the bitmap, in dots per inch.

pixels
Int32

Dimensione bitmap in pixel.Width of the bitmap, in pixels.

Restituisce

Double

Dimensione naturale della bitmap in MIL Device Independent Pixels (DIPs, o 1/96").The natural size of the bitmap in MIL Device Independent Pixels (DIPs, or 1/96").

Si applica a