Udostępnij za pośrednictwem


ColorSpace.Rgb Constructors

Definition

Overloads

ColorSpace.Rgb(IntPtr, JniHandleOwnership)
ColorSpace.Rgb(String, Single[], ColorSpace+Rgb+TransferParameters)
ColorSpace.Rgb(String, Single[], Double)

Creates a new RGB color space using a 3x3 column-major transform matrix.

ColorSpace.Rgb(String, Single[], IDoubleUnaryOperator, IDoubleUnaryOperator)

Creates a new RGB color space using a 3x3 column-major transform matrix.

ColorSpace.Rgb(String, Single[], Single[], ColorSpace+Rgb+TransferParameters)
ColorSpace.Rgb(String, Single[], Single[], Double)

Creates a new RGB color space using a specified set of primaries and a specified white point.

ColorSpace.Rgb(String, Single[], Single[], IDoubleUnaryOperator, IDoubleUnaryOperator, Single, Single)

Creates a new RGB color space using a specified set of primaries and a specified white point.

ColorSpace.Rgb(IntPtr, JniHandleOwnership)

protected Rgb (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.ColorSpace.Rgb : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.ColorSpace.Rgb

Parameters

javaReference
IntPtr

nativeint

Remarks

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

ColorSpace.Rgb(String, Single[], ColorSpace+Rgb+TransferParameters)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[FLandroid/graphics/ColorSpace$Rgb$TransferParameters;)V", "", ApiSince=26)]
public Rgb (string name, float[] toXYZ, Android.Graphics.ColorSpace.Rgb.TransferParameters function);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[FLandroid/graphics/ColorSpace$Rgb$TransferParameters;)V", "", ApiSince=26)>]
new Android.Graphics.ColorSpace.Rgb : string * single[] * Android.Graphics.ColorSpace.Rgb.TransferParameters -> Android.Graphics.ColorSpace.Rgb

Parameters

name
String
toXYZ
Single[]
Attributes

Remarks

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

ColorSpace.Rgb(String, Single[], Double)

Creates a new RGB color space using a 3x3 column-major transform matrix.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[FD)V", "", ApiSince=26)]
public Rgb (string name, float[] toXYZ, double gamma);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[FD)V", "", ApiSince=26)>]
new Android.Graphics.ColorSpace.Rgb : string * single[] * double -> Android.Graphics.ColorSpace.Rgb

Parameters

name
String

Name of the color space, cannot be null, its length must be >= 1

toXYZ
Single[]

3x3 column-major transform matrix from RGB to the profile connection space CIE XYZ as an array of 9 floats, cannot be null

gamma
Double

Gamma to use as the transfer function

Attributes

Remarks

Creates a new RGB color space using a 3x3 column-major transform matrix. The transform matrix must convert from the RGB space to the profile connection space CIE XYZ.

<p class="note">The range of the color space is imposed to be \([0..1]\).</p>

Java documentation for android.graphics.ColorSpace.Rgb.ColorSpace$Rgb(java.lang.String, float[], double).

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

ColorSpace.Rgb(String, Single[], IDoubleUnaryOperator, IDoubleUnaryOperator)

Creates a new RGB color space using a 3x3 column-major transform matrix.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[FLjava/util/function/DoubleUnaryOperator;Ljava/util/function/DoubleUnaryOperator;)V", "", ApiSince=26)]
public Rgb (string name, float[] toXYZ, Java.Util.Functions.IDoubleUnaryOperator oetf, Java.Util.Functions.IDoubleUnaryOperator eotf);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[FLjava/util/function/DoubleUnaryOperator;Ljava/util/function/DoubleUnaryOperator;)V", "", ApiSince=26)>]
new Android.Graphics.ColorSpace.Rgb : string * single[] * Java.Util.Functions.IDoubleUnaryOperator * Java.Util.Functions.IDoubleUnaryOperator -> Android.Graphics.ColorSpace.Rgb

Parameters

name
String

Name of the color space, cannot be null, its length must be >= 1

toXYZ
Single[]

3x3 column-major transform matrix from RGB to the profile connection space CIE XYZ as an array of 9 floats, cannot be null

oetf
IDoubleUnaryOperator

Opto-electronic transfer function, cannot be null

eotf
IDoubleUnaryOperator

Electro-optical transfer function, cannot be null

Attributes

Remarks

Creates a new RGB color space using a 3x3 column-major transform matrix. The transform matrix must convert from the RGB space to the profile connection space CIE XYZ.

<p class="note">The range of the color space is imposed to be \([0..1]\).</p>

Java documentation for android.graphics.ColorSpace.Rgb.ColorSpace$Rgb(java.lang.String, float[], java.util.function.DoubleUnaryOperator, java.util.function.DoubleUnaryOperator).

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

ColorSpace.Rgb(String, Single[], Single[], ColorSpace+Rgb+TransferParameters)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[F[FLandroid/graphics/ColorSpace$Rgb$TransferParameters;)V", "", ApiSince=26)]
public Rgb (string name, float[] primaries, float[] whitePoint, Android.Graphics.ColorSpace.Rgb.TransferParameters function);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[F[FLandroid/graphics/ColorSpace$Rgb$TransferParameters;)V", "", ApiSince=26)>]
new Android.Graphics.ColorSpace.Rgb : string * single[] * single[] * Android.Graphics.ColorSpace.Rgb.TransferParameters -> Android.Graphics.ColorSpace.Rgb

Parameters

name
String
primaries
Single[]
whitePoint
Single[]
Attributes

Remarks

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

ColorSpace.Rgb(String, Single[], Single[], Double)

Creates a new RGB color space using a specified set of primaries and a specified white point.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[F[FD)V", "", ApiSince=26)]
public Rgb (string name, float[] primaries, float[] whitePoint, double gamma);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[F[FD)V", "", ApiSince=26)>]
new Android.Graphics.ColorSpace.Rgb : string * single[] * single[] * double -> Android.Graphics.ColorSpace.Rgb

Parameters

name
String

Name of the color space, cannot be null, its length must be >= 1

primaries
Single[]

RGB primaries as an array of 6 (xy) or 9 (XYZ) floats

whitePoint
Single[]

Reference white as an array of 2 (xy) or 3 (XYZ) floats

gamma
Double

Gamma to use as the transfer function

Attributes

Remarks

Creates a new RGB color space using a specified set of primaries and a specified white point.

The primaries and white point can be specified in the CIE xyY space or in CIE XYZ. The length of the arrays depends on the chosen space:

<table summary="Parameters length"> <tr><th>Space</th><th>Primaries length</th><th>White point length</th></tr> <tr><td>xyY</td><td>6</td><td>2</td></tr> <tr><td>XYZ</td><td>9</td><td>3</td></tr> </table>

When the primaries and/or white point are specified in xyY, the Y component does not need to be specified and is assumed to be 1.0. Only the xy components are required.

Java documentation for android.graphics.ColorSpace.Rgb.ColorSpace$Rgb(java.lang.String, float[], float[], double).

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

ColorSpace.Rgb(String, Single[], Single[], IDoubleUnaryOperator, IDoubleUnaryOperator, Single, Single)

Creates a new RGB color space using a specified set of primaries and a specified white point.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[F[FLjava/util/function/DoubleUnaryOperator;Ljava/util/function/DoubleUnaryOperator;FF)V", "", ApiSince=26)]
public Rgb (string name, float[] primaries, float[] whitePoint, Java.Util.Functions.IDoubleUnaryOperator oetf, Java.Util.Functions.IDoubleUnaryOperator eotf, float min, float max);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[F[FLjava/util/function/DoubleUnaryOperator;Ljava/util/function/DoubleUnaryOperator;FF)V", "", ApiSince=26)>]
new Android.Graphics.ColorSpace.Rgb : string * single[] * single[] * Java.Util.Functions.IDoubleUnaryOperator * Java.Util.Functions.IDoubleUnaryOperator * single * single -> Android.Graphics.ColorSpace.Rgb

Parameters

name
String

Name of the color space, cannot be null, its length must be >= 1

primaries
Single[]

RGB primaries as an array of 6 (xy) or 9 (XYZ) floats

whitePoint
Single[]

Reference white as an array of 2 (xy) or 3 (XYZ) floats

oetf
IDoubleUnaryOperator

Opto-electronic transfer function, cannot be null

eotf
IDoubleUnaryOperator

Electro-optical transfer function, cannot be null

min
Single

The minimum valid value in this color space's RGB range

max
Single

The maximum valid value in this color space's RGB range

Attributes

Remarks

Creates a new RGB color space using a specified set of primaries and a specified white point.

The primaries and white point can be specified in the CIE xyY space or in CIE XYZ. The length of the arrays depends on the chosen space:

<table summary="Parameters length"> <tr><th>Space</th><th>Primaries length</th><th>White point length</th></tr> <tr><td>xyY</td><td>6</td><td>2</td></tr> <tr><td>XYZ</td><td>9</td><td>3</td></tr> </table>

When the primaries and/or white point are specified in xyY, the Y component does not need to be specified and is assumed to be 1.0. Only the xy components are required.

<p class="note">The ID, as returned by #getId(), of an object created by this constructor is always #MIN_ID.</p>

Java documentation for android.graphics.ColorSpace.Rgb.ColorSpace$Rgb(java.lang.String, float[], float[], java.util.function.DoubleUnaryOperator, java.util.function.DoubleUnaryOperator, float, float).

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