ColorSpace.FromXyz Method

Definition

Overloads

FromXyz(Single[])

Converts tristimulus values from the CIE XYZ space to this color space's color model.

FromXyz(Single, Single, Single)

Converts tristimulus values from the CIE XYZ space to this color space's color model.

FromXyz(Single[])

Converts tristimulus values from the CIE XYZ space to this color space's color model.

[Android.Runtime.Register("fromXyz", "([F)[F", "GetFromXyz_arrayFHandler", ApiSince=26)]
public abstract float[] FromXyz (float[] v);
[<Android.Runtime.Register("fromXyz", "([F)[F", "GetFromXyz_arrayFHandler", ApiSince=26)>]
abstract member FromXyz : single[] -> single[]

Parameters

v
Single[]

An array of color components containing the XYZ values to convert from, and large enough to hold the number of components of this color space's model

Returns

Single[]

The array passed in parameter

Attributes

Remarks

Converts tristimulus values from the CIE XYZ space to this color space's color model. The resulting value is passed back in the specified array.

<p class="note">The specified array's length must be at least equal to to the number of color components as returned by Model#getComponentCount(), and its first 3 values must be the XYZ components to convert from.</p>

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

FromXyz(Single, Single, Single)

Converts tristimulus values from the CIE XYZ space to this color space's color model.

[Android.Runtime.Register("fromXyz", "(FFF)[F", "GetFromXyz_FFFHandler", ApiSince=26)]
public virtual float[] FromXyz (float x, float y, float z);
[<Android.Runtime.Register("fromXyz", "(FFF)[F", "GetFromXyz_FFFHandler", ApiSince=26)>]
abstract member FromXyz : single * single * single -> single[]
override this.FromXyz : single * single * single -> single[]

Parameters

x
Single

The X component of the color value

y
Single

The Y component of the color value

z
Single

The Z component of the color value

Returns

Single[]

A new array whose size is equal to the number of color components as returned by Model#getComponentCount()

Attributes

Remarks

Converts tristimulus values from the CIE XYZ space to this color space's color model.

Java documentation for android.graphics.ColorSpace.fromXyz(float, 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