Compartir a través de


ColorSpace.Rgb.GetTransform Method

Definition

Overloads

GetTransform()

Returns the transform of this color space as a new array.

GetTransform(Single[])

Copies the transform of this color space in specified array.

GetTransform()

Returns the transform of this color space as a new array.

[Android.Runtime.Register("getTransform", "()[F", "GetGetTransformHandler", ApiSince=26)]
public virtual float[] GetTransform ();
[<Android.Runtime.Register("getTransform", "()[F", "GetGetTransformHandler", ApiSince=26)>]
abstract member GetTransform : unit -> single[]
override this.GetTransform : unit -> single[]

Returns

Single[]

A new array of 9 floats

Attributes

Remarks

Returns the transform of this color space as a new array. The transform is used to convert from RGB to XYZ (with the same white point as this color space). To connect color spaces, you must first ColorSpace#adapt(ColorSpace, float[]) adapt them to the same white point.

It is recommended to use ColorSpace#connect(ColorSpace, ColorSpace) to convert between color spaces.

Java documentation for android.graphics.ColorSpace.Rgb.getTransform().

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

GetTransform(Single[])

Copies the transform of this color space in specified array.

[Android.Runtime.Register("getTransform", "([F)[F", "GetGetTransform_arrayFHandler", ApiSince=26)]
public virtual float[] GetTransform (float[] transform);
[<Android.Runtime.Register("getTransform", "([F)[F", "GetGetTransform_arrayFHandler", ApiSince=26)>]
abstract member GetTransform : single[] -> single[]
override this.GetTransform : single[] -> single[]

Parameters

transform
Single[]

The destination array, cannot be null, its length must be >= 9

Returns

Single[]

The destination array passed as a parameter

Attributes

Remarks

Copies the transform of this color space in specified array. The transform is used to convert from RGB to XYZ (with the same white point as this color space). To connect color spaces, you must first ColorSpace#adapt(ColorSpace, float[]) adapt them to the same white point.

It is recommended to use ColorSpace#connect(ColorSpace, ColorSpace) to convert between color spaces.

Java documentation for android.graphics.ColorSpace.Rgb.getTransform(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