DisplayPrimaryDescription 类

定义

描述一组属性,这些属性用于使用 CreatePrimary 分配 DisplaySurface 对象。

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
继承
Object Platform::Object IInspectable DisplayPrimaryDescription
属性

Windows 要求

设备系列
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)

构造函数

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

创建具有指定标准属性的主说明。

属性

ColorSpace

获取图面的 DXGI 兼容颜色空间。

Format

获取图面的 DXGI 兼容格式。

Height

获取图面的高度。

IsStereo

获取一个值,该值指示说明是否为立体 3D 图面。

MultisampleDescription

获取图面的多重采样属性。

Properties

保留供将来使用。

Width

获取图面的宽度。

方法

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

创建具有指定标准属性和额外属性的主要说明。

适用于