共用方式為


CompositionGraphicsDevice.CreateDrawingSurface2 方法

定義

建立 CompositionDrawingSurface 的實例。

public:
 virtual CompositionDrawingSurface ^ CreateDrawingSurface2(SizeInt32 sizePixels, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode) = CreateDrawingSurface2;
CompositionDrawingSurface CreateDrawingSurface2(SizeInt32 const& sizePixels, DirectXPixelFormat const& pixelFormat, DirectXAlphaMode const& alphaMode);
public CompositionDrawingSurface CreateDrawingSurface2(SizeInt32 sizePixels, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode);
function createDrawingSurface2(sizePixels, pixelFormat, alphaMode)
Public Function CreateDrawingSurface2 (sizePixels As SizeInt32, pixelFormat As DirectXPixelFormat, alphaMode As DirectXAlphaMode) As CompositionDrawingSurface

參數

sizePixels
SizeInt32

繪圖介面的大小,以圖元為單位。

pixelFormat
DirectXPixelFormat

繪圖介面的像素格式。

alphaMode
DirectXAlphaMode

繪圖介面的 Alpha 模式。

傳回

會傳回建立的 CompositionDrawingSurface。

適用於