共用方式為


Compositor.CreateSpriteShape 方法

定義

多載

CreateSpriteShape()

建立 CompositionSpriteShape的實例。

CreateSpriteShape(CompositionGeometry)

使用指定的幾何建立 CompositionSpriteShape 的實例。

CreateSpriteShape()

建立 CompositionSpriteShape的實例。

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

傳回

會傳回建立的 CompositionSpriteShape 物件。

屬性

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

適用於

CreateSpriteShape(CompositionGeometry)

使用指定的幾何建立 CompositionSpriteShape 的實例。

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

參數

geometry
CompositionGeometry

要建立之圖形的幾何。

傳回

會傳回建立的 CompositionSpriteShape 物件。

屬性

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

適用於