Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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


Type: System.Double

Width of the bitmap, in dots per inch.

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
© 2016 Microsoft