ColorSpaceTransform Constructors

Definition

Overloads

ColorSpaceTransform(Rational[])

Create a new immutable ColorSpaceTransform instance from a Rational array.

ColorSpaceTransform(Int32[])

Create a new immutable ColorSpaceTransform instance from an int array.

ColorSpaceTransform(Rational[])

Create a new immutable ColorSpaceTransform instance from a Rational array.

[Android.Runtime.Register(".ctor", "([Landroid/util/Rational;)V", "")]
public ColorSpaceTransform (Android.Util.Rational[]? elements);
[<Android.Runtime.Register(".ctor", "([Landroid/util/Rational;)V", "")>]
new Android.Hardware.Camera2.Params.ColorSpaceTransform : Android.Util.Rational[] -> Android.Hardware.Camera2.Params.ColorSpaceTransform

Parameters

elements
Rational[]

An array of 9 elements

Attributes

Exceptions

if the count of elements is not 9

if elements or any sub-element is null

Remarks

Create a new immutable ColorSpaceTransform instance from a Rational array.

The elements must be stored in a row-major order.

Java documentation for android.hardware.camera2.params.ColorSpaceTransform.ColorSpaceTransform(android.util.Rational[]).

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

ColorSpaceTransform(Int32[])

Create a new immutable ColorSpaceTransform instance from an int array.

[Android.Runtime.Register(".ctor", "([I)V", "")]
public ColorSpaceTransform (int[]? elements);
[<Android.Runtime.Register(".ctor", "([I)V", "")>]
new Android.Hardware.Camera2.Params.ColorSpaceTransform : int[] -> Android.Hardware.Camera2.Params.ColorSpaceTransform

Parameters

elements
Int32[]

An array of 18 elements

Attributes

Exceptions

if the count of elements is not 18

if elements is null

Remarks

Create a new immutable ColorSpaceTransform instance from an int array.

The elements must be stored in a row-major order. Each rational is stored contiguously as a (numerator, denominator) pair.

In particular:

{@code
            int[] elements = new int[
                N11, D11, N12, D12, N13, D13,
                N21, D21, N22, D22, N23, D23,
                N31, D31, N32, D32, N33, D33
            ];

            new ColorSpaceTransform(elements)}

where Nij and Dij is the numerator and denominator for row i and column j.</p>

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