CompositionGraphicsDevice.CreateVirtualDrawingSurface 方法

定义

创建 CompositionVirtualDrawingSurface 的实例。

public:
 virtual CompositionVirtualDrawingSurface ^ CreateVirtualDrawingSurface(SizeInt32 sizePixels, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode) = CreateVirtualDrawingSurface;
CompositionVirtualDrawingSurface CreateVirtualDrawingSurface(SizeInt32 const& sizePixels, DirectXPixelFormat const& pixelFormat, DirectXAlphaMode const& alphaMode);
public CompositionVirtualDrawingSurface CreateVirtualDrawingSurface(SizeInt32 sizePixels, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode);
function createVirtualDrawingSurface(sizePixels, pixelFormat, alphaMode)
Public Function CreateVirtualDrawingSurface (sizePixels As SizeInt32, pixelFormat As DirectXPixelFormat, alphaMode As DirectXAlphaMode) As CompositionVirtualDrawingSurface

参数

sizePixels
SizeInt32

绘图图面的大小(以像素为单位)。

pixelFormat
DirectXPixelFormat

绘图图面的像素格式。

alphaMode
DirectXAlphaMode

绘图图面的 alpha 模式。

返回

返回创建的 CompositionVirtualDrawingSurface。

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

适用于