ImageSource.PixelsToDIPs Method (Double, Int32)

 

Converts pixels to DIPs in a way that is consistent with MIL.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

protected static double PixelsToDIPs(
	double dpi,
	int pixels
)

Parameters

dpi
Type: System.Double

Width of the bitmap, in dots per inch.

pixels
Type: System.Int32

Width of the bitmap, in pixels.

Return Value

Type: System.Double

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

.NET Framework
Available since 3.0
Return to top
Show: