Edit

ScalingInfo Class

Definition

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.

Applies to