ImageSource::PixelsToDIPs Method (Double, Int32)
.NET Framework (current version)
Converts pixels to DIPs in a way that is consistent with MIL.
Assembly: PresentationCore (in PresentationCore.dll)
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::DoubleThe natural size of the bitmap in MIL Device Independent Pixels (DIPs, or 1/96").
.NET Framework
Available since 3.0
Available since 3.0
Show: