DisplayProperties.LogicalDpi | logicalDpi property
Gets the pixels per logical inch of the current environment.
Syntax
var logicalDpi = Windows.Graphics.Display.DisplayProperties.logicalDpi;
Property value
Type: Number [JavaScript] | System.Single [.NET] | float32 [C++]
The pixels per logical inch of the current environment.
Remarks
The logical dots per inch (DPI) can change based on scaling. For info about the meaning of logical DPI, see DPI and Device-Independent Pixels.
Examples
void View::OnLogicalDpiChanged(_In_ Platform::Object^ sender)
{
m_renderer->SetDpi(DisplayProperties::LogicalDpi);
}
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 2/25/2013
