共用方式為


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

適用於