다음을 통해 공유


ColorSpace.Rgb.FromLinear Method

Definition

Overloads

FromLinear(Single[])

Encodes an RGB value from linear space to this color space's "gamma space".

FromLinear(Single, Single, Single)

Encodes an RGB value from linear space to this color space's "gamma space".

FromLinear(Single[])

Encodes an RGB value from linear space to this color space's "gamma space".

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

Parameters

v
Single[]

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

Returns

Single[]

A new array of 3 floats containing non-linear RGB values

Attributes

Remarks

Encodes an RGB value from linear space to this color space's "gamma space". This is achieved by applying this color space's opto-electronic 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.fromLinear(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

FromLinear(Single, Single, Single)

Encodes an RGB value from linear space to this color space's "gamma space".

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

Parameters

r
Single

The red component to encode from linear space

g
Single

The green component to encode from linear space

b
Single

The blue component to encode from linear space

Returns

Single[]

A new array of 3 floats containing non-linear RGB values

Attributes

Remarks

Encodes an RGB value from linear space to this color space's "gamma space". This is achieved by applying this color space's opto-electronic 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.fromLinear(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