/// <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
{
privatereadonlydouble_dpiScaleX;
privatereadonlydouble_dpiScaleY;
/// <summary>Gets the DPI scale on the X axis.</summary>
/// <returns>The DPI scale for the X axis.</returns>
publicdoubleDpiScaleX
{
get
{
returnthis._dpiScaleX;
}
}
/// <summary>Gets the DPI scale on the Yaxis.</summary>
/// <returns>The DPI scale for the Y axis.</returns>
publicdoubleDpiScaleY
{
get
{
returnthis._dpiScaleY;
}
}
/// <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
{
returnthis._dpiScaleY;
}
}
/// <summary>Gets the DPI along X axis.</summary>
/// <returns>The DPI along the X axis.</returns>
publicdoublePixelsPerInchX
{
get
{
return96.0*this._dpiScaleX;
}
}
/// <summary>Gets the DPI along Y axis.</summary>
/// <returns>The DPI along the Y axis.</returns>
publicdoublePixelsPerInchY
{
get
{
return96.0*this._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>