CompositionGraphicsDevice.CreateDrawingSurface2 Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|