ColorSpace.ToXyz Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ToXyz(Single[]) |
Converts a color value from this color space's model to tristimulus CIE XYZ values. |
ToXyz(Single, Single, Single) |
Converts a color value from this color space's model to tristimulus CIE XYZ values. |
ToXyz(Single[])
Converts a color value from this color space's model to tristimulus CIE XYZ values.
[Android.Runtime.Register("toXyz", "([F)[F", "GetToXyz_arrayFHandler", ApiSince=26)]
public abstract float[] ToXyz (float[] v);
[<Android.Runtime.Register("toXyz", "([F)[F", "GetToXyz_arrayFHandler", ApiSince=26)>]
abstract member ToXyz : single[] -> single[]
Parameters
- v
- Single[]
An array of color components containing the color space's color value to convert to XYZ, and large enough to hold the resulting tristimulus XYZ values
Returns
The array passed in parameter
- Attributes
Remarks
Converts a color value from this color space's model to tristimulus CIE XYZ values. If the color model of this color space is not Model#RGB RGB
, it is assumed that the target CIE XYZ space uses a #ILLUMINANT_D50 D50
standard illuminant.
<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()
.</p>
Java documentation for android.graphics.ColorSpace.toXyz(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
ToXyz(Single, Single, Single)
Converts a color value from this color space's model to tristimulus CIE XYZ values.
[Android.Runtime.Register("toXyz", "(FFF)[F", "GetToXyz_FFFHandler", ApiSince=26)]
public virtual float[] ToXyz (float r, float g, float b);
[<Android.Runtime.Register("toXyz", "(FFF)[F", "GetToXyz_FFFHandler", ApiSince=26)>]
abstract member ToXyz : single * single * single -> single[]
override this.ToXyz : single * single * single -> single[]
Parameters
- r
- Single
The first component of the value to convert from (typically R in RGB)
- g
- Single
The second component of the value to convert from (typically G in RGB)
- b
- Single
The third component of the value to convert from (typically B in RGB)
Returns
A new array of 3 floats, containing tristimulus XYZ values
- Attributes
Remarks
Converts a color value from this color space's model to tristimulus CIE XYZ values. If the color model of this color space is not Model#RGB RGB
, it is assumed that the target CIE XYZ space uses a #ILLUMINANT_D50 D50
standard illuminant.
This method is a convenience for color spaces with a model of 3 components (Model#RGB RGB
or Model#LAB
for instance). With color spaces using fewer or more components, use #toXyz(float[])
instead
.
Java documentation for android.graphics.ColorSpace.toXyz(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.