Share via


CompositionGraphicsDevice.CreateDrawingSurface2 Method

Definition

Creates an instance of 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

Parameters

sizePixels
SizeInt32

The size of the drawing surface in pixels.

pixelFormat
DirectXPixelFormat

The pixel format of the drawing surface.

alphaMode
DirectXAlphaMode

The alpha mode of the drawing surface.

Returns

Returns the created CompositionDrawingSurface.

Applies to