語言

Matrix.SetPolyToPoly(Single[], Int32, Single[], Int32, Int32) 方法

定義

將矩陣設定為指定的 src 點對應到指定的 dst 點。

[Android.Runtime.Register("setPolyToPoly", "([FI[FII)Z", "GetSetPolyToPoly_arrayFIarrayFIIHandler")]
public virtual bool SetPolyToPoly(float[]? src, int srcIndex, float[]? dst, int dstIndex, int pointCount);
[<Android.Runtime.Register("setPolyToPoly", "([FI[FII)Z", "GetSetPolyToPoly_arrayFIarrayFIIHandler")>]
abstract member SetPolyToPoly : single[] * int * single[] * int * int -> bool
override this.SetPolyToPoly : single[] * int * single[] * int * int -> bool

參數

src
Single[]

src [x,y] 點對陣列

srcIndex
Int32

第一對 src 值的索引

dst
Single[]

dst [x,y] 對(點)陣列

dstIndex
Int32

第一對 dst 值的索引

pointCount
Int32

要用的配對/點數。 必須是[0..4]

傳回

若矩陣設定為指定的變換,則為真

屬性

備註

將矩陣設定為指定的 src 點對應到指定的 dst 點。 「點」以浮點陣列表示,階數為 [x0, y0, x1, y1, ...],每個「點」為兩個浮點數值。

Java 文件 android.graphics.Matrix.setPolyToPoly(float[], int, float[], int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於