ImageSource.PixelsToDIPs(Double, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- dpi
- Double
Width of the bitmap, in dots per inch.
- pixels
- Int32
Width of the bitmap, in pixels.
Returns
The natural size of the bitmap in MIL Device Independent Pixels (DIPs, or 1/96").
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.