共用方式為


Compositor.CreateRectangleClip 方法

定義

多載

CreateRectangleClip(Single, Single, Single, Single)

使用指定的邊緣值建立 的 RectangleClip 實例。

CreateRectangleClip(Single, Single, Single, Single, Vector2, Vector2, Vector2, Vector2)

使用指定的邊緣和邊角半徑值建立 的 RectangleClip 實例。

CreateRectangleClip()

使用預設值建立 的 RectangleClip 實例。

CreateRectangleClip(Single, Single, Single, Single)

使用指定的邊緣值建立 的 RectangleClip 實例。

public:
 virtual RectangleClip ^ CreateRectangleClip(float left, float top, float right, float bottom) = CreateRectangleClip;
/// [Windows.Foundation.Metadata.Overload("CreateRectangleClipWithSides")]
RectangleClip CreateRectangleClip(float const& left, float const& top, float const& right, float const& bottom);
[Windows.Foundation.Metadata.Overload("CreateRectangleClipWithSides")]
public RectangleClip CreateRectangleClip(float left, float top, float right, float bottom);
function createRectangleClip(left, top, right, bottom)
Public Function CreateRectangleClip (left As Single, top As Single, right As Single, bottom As Single) As RectangleClip

參數

left
Single

float

top
Single

float

視覺效果頂端上邊緣的位移,以圖元為單位。

right
Single

float

視覺效果右邊的右邊緣位移,以圖元為單位。

bottom
Single

float

視覺效果底部左下角的位移,以圖元為單位。

傳回

的已建立實例 RectangleClip

屬性

適用於

CreateRectangleClip(Single, Single, Single, Single, Vector2, Vector2, Vector2, Vector2)

使用指定的邊緣和邊角半徑值建立 的 RectangleClip 實例。

public:
 virtual RectangleClip ^ CreateRectangleClip(float left, float top, float right, float bottom, float2 topLeftRadius, float2 topRightRadius, float2 bottomRightRadius, float2 bottomLeftRadius) = CreateRectangleClip;
/// [Windows.Foundation.Metadata.Overload("CreateRectangleClipWithSidesAndRadius")]
RectangleClip CreateRectangleClip(float const& left, float const& top, float const& right, float const& bottom, float2 const& topLeftRadius, float2 const& topRightRadius, float2 const& bottomRightRadius, float2 const& bottomLeftRadius);
[Windows.Foundation.Metadata.Overload("CreateRectangleClipWithSidesAndRadius")]
public RectangleClip CreateRectangleClip(float left, float top, float right, float bottom, Vector2 topLeftRadius, Vector2 topRightRadius, Vector2 bottomRightRadius, Vector2 bottomLeftRadius);
function createRectangleClip(left, top, right, bottom, topLeftRadius, topRightRadius, bottomRightRadius, bottomLeftRadius)
Public Function CreateRectangleClip (left As Single, top As Single, right As Single, bottom As Single, topLeftRadius As Vector2, topRightRadius As Vector2, bottomRightRadius As Vector2, bottomLeftRadius As Vector2) As RectangleClip

參數

left
Single

float

視覺效果左邊的左邊緣位移,以圖元為單位。

top
Single

float

視覺效果頂端上邊緣的位移,以圖元為單位。

right
Single

float

視覺效果右邊的右邊緣位移,以圖元為單位。

bottom
Single

float

視覺效果底部左下角的位移,以圖元為單位。

topLeftRadius
Vector2 Vector2

float2

矩形左上角以圖元為單位四捨五入的數量。

topRightRadius
Vector2 Vector2

float2

矩形右上角以圖元為單位四捨五入的數量。

bottomRightRadius
Vector2 Vector2

float2

矩形右下角以圖元為單位四捨五入的數量。

bottomLeftRadius
Vector2 Vector2

float2

矩形左下角以圖元為單位四捨五入的數量。

傳回

的已建立實例 RectangleClip

屬性

適用於

CreateRectangleClip()

使用預設值建立 的 RectangleClip 實例。

public:
 virtual RectangleClip ^ CreateRectangleClip() = CreateRectangleClip;
/// [Windows.Foundation.Metadata.Overload("CreateRectangleClip")]
RectangleClip CreateRectangleClip();
[Windows.Foundation.Metadata.Overload("CreateRectangleClip")]
public RectangleClip CreateRectangleClip();
function createRectangleClip()
Public Function CreateRectangleClip () As RectangleClip

傳回

的已建立實例 RectangleClip

屬性

適用於