Compositor.CreateSpriteVisual Method

Definition

Creates an instance of SpriteVisual.

Equivalent WinUI method: Microsoft.UI.Composition.Compositor.CreateSpriteVisual.

public:
 virtual SpriteVisual ^ CreateSpriteVisual() = CreateSpriteVisual;
SpriteVisual CreateSpriteVisual();
public SpriteVisual CreateSpriteVisual();
function createSpriteVisual()
Public Function CreateSpriteVisual () As SpriteVisual

Returns

SpriteVisual

Returns the created SpriteVisual object.

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Applies to