0 out of 2 rated this helpful - Rate this topic

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

Windows.Graphics.Display
Windows::Graphics::Display [C++]

Metadata

Windows.winmd

See also

DisplayProperties

 

 

Build date: 2/25/2013

© 2013 Microsoft. All rights reserved.