Freigeben über


ColorSpace.Rgb.ToLinear Method

Definition

Overloads

ToLinear(Single[])

Decodes an RGB value to linear space.

ToLinear(Single, Single, Single)

Decodes an RGB value to linear space.

ToLinear(Single[])

Decodes an RGB value to linear space.

[Android.Runtime.Register("toLinear", "([F)[F", "GetToLinear_arrayFHandler", ApiSince=26)]
public virtual float[] ToLinear (float[] v);
[<Android.Runtime.Register("toLinear", "([F)[F", "GetToLinear_arrayFHandler", ApiSince=26)>]
abstract member ToLinear : single[] -> single[]
override this.ToLinear : single[] -> single[]

Parameters

v
Single[]

A non-null array of non-linear RGB values, its length must be at least 3

Returns

Single[]

The specified array

Attributes

Remarks

Decodes an RGB value to linear space. This is achieved by applying this color space's electro-optical transfer function to the first 3 values of the supplied array. The result is stored back in the input array.

Refer to the documentation of ColorSpace.Rgb for more information about transfer functions and their use for encoding and decoding RGB values.

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

ToLinear(Single, Single, Single)

Decodes an RGB value to linear space.

[Android.Runtime.Register("toLinear", "(FFF)[F", "GetToLinear_FFFHandler", ApiSince=26)]
public virtual float[] ToLinear (float r, float g, float b);
[<Android.Runtime.Register("toLinear", "(FFF)[F", "GetToLinear_FFFHandler", ApiSince=26)>]
abstract member ToLinear : single * single * single -> single[]
override this.ToLinear : single * single * single -> single[]

Parameters

r
Single

The red component to decode to linear space

g
Single

The green component to decode to linear space

b
Single

The blue component to decode to linear space

Returns

Single[]

A new array of 3 floats containing linear RGB values

Attributes

Remarks

Decodes an RGB value to linear space. This is achieved by applying this color space's electro-optical transfer function to the supplied values.

Refer to the documentation of ColorSpace.Rgb for more information about transfer functions and their use for encoding and decoding RGB values.

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