مشاركة عبر


CompositionGraphicsDevice.CreateVirtualDrawingSurface Method

Definition

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

Parameters

sizePixels
SizeInt32

The size in pixels of the drawing surface.

pixelFormat
DirectXPixelFormat

The pixel format of the drawing surface.

alphaMode
DirectXAlphaMode

The alpha mode of the drawing surface.

Returns

Returns the created CompositionVirtualDrawingSurface.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to