CompositionGraphicsDevice.CreateDrawingSurface 方法

定义

创建 CompositionDrawingSurface 的实例。

public:
 virtual CompositionDrawingSurface ^ CreateDrawingSurface(Size sizePixels, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode) = CreateDrawingSurface;
CompositionDrawingSurface CreateDrawingSurface(Size const& sizePixels, DirectXPixelFormat const& pixelFormat, DirectXAlphaMode const& alphaMode);
public CompositionDrawingSurface CreateDrawingSurface(Size sizePixels, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode);
function createDrawingSurface(sizePixels, pixelFormat, alphaMode)
Public Function CreateDrawingSurface (sizePixels As Size, pixelFormat As DirectXPixelFormat, alphaMode As DirectXAlphaMode) As CompositionDrawingSurface

参数

sizePixels
Size

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

pixelFormat
DirectXPixelFormat

图面的像素格式。

alphaMode
DirectXAlphaMode

应如何处理 alpha 通道。

返回

创建的 CompositionDrawingSurface

Windows 要求

设备系列
Windows 10 (在 10.0.10586.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v2.0 中引入)

适用于