DisplayPrimaryDescription Class

Definition

Describes a set of properties that are used for allocating DisplaySurface objects using CreatePrimary.

public ref class DisplayPrimaryDescription sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Display.Core.IDisplayPrimaryDescriptionFactory, 458752, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DisplayPrimaryDescription final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Display.Core.IDisplayPrimaryDescriptionFactory), 458752, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DisplayPrimaryDescription
function DisplayPrimaryDescription(width, height, pixelFormat, colorSpace, isStereo, multisampleDescription)
Public NotInheritable Class DisplayPrimaryDescription
Inheritance
Object Platform::Object IInspectable DisplayPrimaryDescription
Attributes

Windows requirements

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

Constructors

DisplayPrimaryDescription(UInt32, UInt32, DirectXPixelFormat, DirectXColorSpace, Boolean, Direct3DMultisampleDescription)

Creates a primary description with the specified standard properties.

Properties

ColorSpace

Gets the DXGI-compatible color space of a surface.

Format

Gets the DXGI-compatible format of a surface.

Height

Gets the height of a surface.

IsStereo

Gets a value indicating whether the description is of a stereoscopic 3D surface.

MultisampleDescription

Gets the multisampling properties of a surface.

Properties

Reserved for future use.

Width

Gets the width of a surface.

Methods

CreateWithProperties(IIterable<KeyValuePair<Guid,Object>>, UInt32, UInt32, DirectXPixelFormat, DirectXColorSpace, Boolean, Direct3DMultisampleDescription)

Creates a primary description with the specified standard properties, as well as extra properties.

Applies to