共用方式為


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 引進)

適用於