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

适用于