ScalingInfo Class
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.
A utility class that can be used to determine screen densities.
public static class ScalingInfo
- Inheritance
-
ScalingInfo
Properties
| Name | Description |
|---|---|
| Dpi |
Gets the DPI of the screen. |
| Profile |
Gets the device profile. |
| ScalingFactor |
The scaling factor to convert between raw pixels and device-independent pixels. |
Methods
| Name | Description |
|---|---|
| FromPixel(Double) |
Convert from raw pixels into device-independent pixels. |
| SetScalingFactor(Nullable<Double>) |
Sets or resets the scaling factor used to convert between raw pixels and device-independent pixels. |
| ToPixel(Double) |
Convert from device-independent pixels into raw pixels. |