DisplayProperties.LogicalDpi | logicalDpi property

Expand
0 out of 1 rated this helpful - Rate this topic

DisplayProperties.LogicalDpi | logicalDpi property

[This documentation is preliminary and is subject to change.]

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 Release Preview

Minimum supported server

Windows Server 2012

Namespace

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

Metadata

Windows.winmd

See also

DisplayProperties

 

 

Build date: 5/22/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD