DisplayPathScaling Enum

Definition

Defines constants that specify how to scale content from a frame buffer to a target.

public enum class DisplayPathScaling
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
enum class DisplayPathScaling
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
public enum DisplayPathScaling
var value = Windows.Devices.Display.Core.DisplayPathScaling.identity
Public Enum DisplayPathScaling
Inheritance
DisplayPathScaling
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Fields

AspectRatioStretched 3

Indicates that content should be stretched to fit within the target resolution, but without changing the source aspect ratio. Any unoccupied space is rendered as black pixels.

Centered 1

Indicates that content should be centered within the target resolution, with no scaling. Any unoccupied space is rendered as black pixels.

Custom 4

Reserved for future use.

DriverPreferred 5

Indicates that the driver should determine how to scale the content.

Identity 0

Indicates that content should not be stretched at all. This is only applicable if the source and target resolutions are identical.

Stretched 2

Indicates that content should be stretched to the exact target resolution.

Applies to