다음을 통해 공유


ColorSpace.Rgb.GetPrimaries Method

Definition

Overloads

GetPrimaries()

Returns the primaries of this color space as a new array of 6 floats.

GetPrimaries(Single[])

Copies the primaries of this color space in specified array.

GetPrimaries()

Returns the primaries of this color space as a new array of 6 floats.

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

Returns

Single[]

A new non-null array of 2 floats

Attributes

Remarks

Returns the primaries of this color space as a new array of 6 floats. The Y component is assumed to be 1 and is therefore not copied into the destination. The x and y components of the first primary are written in the array at positions 0 and 1 respectively.

Note: Some ColorSpaces represent gray profiles. The concept of primaries for such a ColorSpace does not make sense, so we use a special set of primaries that are all 1s.

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

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

GetPrimaries(Single[])

Copies the primaries of this color space in specified array.

[Android.Runtime.Register("getPrimaries", "([F)[F", "GetGetPrimaries_arrayFHandler", ApiSince=26)]
public virtual float[] GetPrimaries (float[] primaries);
[<Android.Runtime.Register("getPrimaries", "([F)[F", "GetGetPrimaries_arrayFHandler", ApiSince=26)>]
abstract member GetPrimaries : single[] -> single[]
override this.GetPrimaries : single[] -> single[]

Parameters

primaries
Single[]

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

Returns

Single[]

The destination array passed as a parameter

Attributes

Remarks

Copies the primaries of this color space in specified array. The Y component is assumed to be 1 and is therefore not copied into the destination. The x and y components of the first primary are written in the array at positions 0 and 1 respectively.

Note: Some ColorSpaces represent gray profiles. The concept of primaries for such a ColorSpace does not make sense, so we use a special set of primaries that are all 1s.

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