Compositor.CreateSpriteShape Method

Definition

Overloads

CreateSpriteShape(CompositionGeometry)

Creates an instance of CompositionSpriteShape using the specified geometry.

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

CreateSpriteShape()

Creates an instance of CompositionSpriteShape.

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

CreateSpriteShape(CompositionGeometry)

Creates an instance of CompositionSpriteShape using the specified geometry.

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

public:
 virtual CompositionSpriteShape ^ CreateSpriteShape(CompositionGeometry ^ geometry) = CreateSpriteShape;
/// [Windows.Foundation.Metadata.Overload("CreateSpriteShapeWithGeometry")]
CompositionSpriteShape CreateSpriteShape(CompositionGeometry const& geometry);
[Windows.Foundation.Metadata.Overload("CreateSpriteShapeWithGeometry")]
public CompositionSpriteShape CreateSpriteShape(CompositionGeometry geometry);
function createSpriteShape(geometry)
Public Function CreateSpriteShape (geometry As CompositionGeometry) As CompositionSpriteShape

Parameters

geometry
CompositionGeometry

The geometry of the shape to create.

Returns

CompositionSpriteShape

Returns the created CompositionSpriteShape object.

Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Applies to

CreateSpriteShape()

Creates an instance of CompositionSpriteShape.

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

public:
 virtual CompositionSpriteShape ^ CreateSpriteShape() = CreateSpriteShape;
/// [Windows.Foundation.Metadata.Overload("CreateSpriteShape")]
CompositionSpriteShape CreateSpriteShape();
[Windows.Foundation.Metadata.Overload("CreateSpriteShape")]
public CompositionSpriteShape CreateSpriteShape();
function createSpriteShape()
Public Function CreateSpriteShape () As CompositionSpriteShape

Returns

CompositionSpriteShape

Returns the created CompositionSpriteShape object.

Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Applies to