Matrix.SetPolyToPoly(Single[], Int32, Single[], Int32, Int32) Method

Definition

Set the matrix such that the specified src points would map to the specified dst points.

[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

Parameters

src
Single[]

The array of src [x,y] pairs (points)

srcIndex
Int32

Index of the first pair of src values

dst
Single[]

The array of dst [x,y] pairs (points)

dstIndex
Int32

Index of the first pair of dst values

pointCount
Int32

The number of pairs/points to be used. Must be [0..4]

Returns

true if the matrix was set to the specified transformation

Attributes

Remarks

Set the matrix such that the specified src points would map to the specified dst points. The "points" are represented as an array of floats, order [x0, y0, x1, y1, ...], where each "point" is 2 float values.

Java documentation for android.graphics.Matrix.setPolyToPoly(float[], int, float[], int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to