Sdílet prostřednictvím


ColorSpaceTransform.CopyElements Method

Definition

Overloads

CopyElements(Rational[], Int32)

Copy the Rational elements in row-major order from this matrix into the destination.

CopyElements(Int32[], Int32)

Copy the Rational elements in row-major order from this matrix into the destination.

CopyElements(Rational[], Int32)

Copy the Rational elements in row-major order from this matrix into the destination.

[Android.Runtime.Register("copyElements", "([Landroid/util/Rational;I)V", "")]
public void CopyElements (Android.Util.Rational[]? destination, int offset);
[<Android.Runtime.Register("copyElements", "([Landroid/util/Rational;I)V", "")>]
member this.CopyElements : Android.Util.Rational[] * int -> unit

Parameters

destination
Rational[]

an array big enough to hold at least 9 elements after the offset

offset
Int32

a non-negative offset into the array

Attributes

Exceptions

If destination was null

If there's not enough room to write the elements at the specified destination and offset.

Remarks

Copy the Rational elements in row-major order from this matrix into the destination.

Java documentation for android.hardware.camera2.params.ColorSpaceTransform.copyElements(android.util.Rational[], 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

CopyElements(Int32[], Int32)

Copy the Rational elements in row-major order from this matrix into the destination.

[Android.Runtime.Register("copyElements", "([II)V", "")]
public void CopyElements (int[]? destination, int offset);
[<Android.Runtime.Register("copyElements", "([II)V", "")>]
member this.CopyElements : int[] * int -> unit

Parameters

destination
Int32[]

an array big enough to hold at least 18 elements after the offset

offset
Int32

a non-negative offset into the array

Attributes

Exceptions

If destination was null

If there's not enough room to write the elements at the specified destination and offset.

Remarks

Copy the Rational elements in row-major order from this matrix into the destination.

Each element is stored as a contiguous rational packed as a (numerator, denominator) pair of ints, identical to the ColorSpaceTransform#ColorSpaceTransform(int[]) constructor.

Java documentation for android.hardware.camera2.params.ColorSpaceTransform.copyElements(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.

See also

  • <xref:Android.Hardware.Camera2.Params.ColorSpaceTransform(System.Int32%5b%5d)>

Applies to