/// <summary>Stores DPI information from which a <see cref="T:System.Windows.Media.Visual" /> or <see cref="T:System.Windows.UIElement" /> is rendered.</summary>
publicstructDpiScale
{
/// <summary>Gets the DPI scale on the X axis.</summary>
/// <returns>The DPI scale for the X axis.</returns>
publicdoubleDpiScaleX{get;privateset;}
/// <summary>Gets the DPI scale on the Yaxis.</summary>
/// <returns>The DPI scale for the Y axis.</returns>
publicdoubleDpiScaleY{get;privateset;}
/// <summary>Get or sets the PixelsPerDip at which the text should be rendered.</summary>
/// <returns>The current <see cref="P:System.Windows.DpiScale.PixelsPerDip" /> value.</returns>
publicdoublePixelsPerDip
{
get
{
returnDpiScaleY;
}
}
/// <summary>Gets the DPI along X axis.</summary>
/// <returns>The DPI along the X axis.</returns>
publicdoublePixelsPerInchX
{
get
{
return96.0*DpiScaleX;
}
}
/// <summary>Gets the DPI along Y axis.</summary>
/// <returns>The DPI along the Y axis.</returns>
publicdoublePixelsPerInchY
{
get
{
return96.0*DpiScaleY;
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Windows.DpiScale" /> structure.</summary>
/// <param name="dpiScaleX">The DPI scale on the X axis.</param>
/// <param name="dpiScaleY">The DPI scale on the Y axis. </param>