Share via


ColorSpace.Adapt Method

Definition

Overloads

Adapt(ColorSpace, Single[])

Performs the chromatic adaptation of a color space from its native white point to the specified white point.

Adapt(ColorSpace, Single[], ColorSpace+Adaptation)

Performs the chromatic adaptation of a color space from its native white point to the specified white point.

Adapt(ColorSpace, Single[])

Performs the chromatic adaptation of a color space from its native white point to the specified white point.

[Android.Runtime.Register("adapt", "(Landroid/graphics/ColorSpace;[F)Landroid/graphics/ColorSpace;", "", ApiSince=26)]
public static Android.Graphics.ColorSpace Adapt (Android.Graphics.ColorSpace colorSpace, float[] whitePoint);
[<Android.Runtime.Register("adapt", "(Landroid/graphics/ColorSpace;[F)Landroid/graphics/ColorSpace;", "", ApiSince=26)>]
static member Adapt : Android.Graphics.ColorSpace * single[] -> Android.Graphics.ColorSpace

Parameters

colorSpace
ColorSpace

The color space to chromatically adapt

whitePoint
Single[]

The new white point

Returns

A ColorSpace instance with the same name, primaries, transfer functions and range as the specified color space

Attributes

Remarks

Performs the chromatic adaptation of a color space from its native white point to the specified white point.

The chromatic adaptation is performed using the Adaptation#BRADFORD matrix.

<p class="note">The color space returned by this method always has an ID of #MIN_ID.</p>

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

Adapt(ColorSpace, Single[], ColorSpace+Adaptation)

Performs the chromatic adaptation of a color space from its native white point to the specified white point.

[Android.Runtime.Register("adapt", "(Landroid/graphics/ColorSpace;[FLandroid/graphics/ColorSpace$Adaptation;)Landroid/graphics/ColorSpace;", "", ApiSince=26)]
public static Android.Graphics.ColorSpace Adapt (Android.Graphics.ColorSpace colorSpace, float[] whitePoint, Android.Graphics.ColorSpace.Adaptation adaptation);
[<Android.Runtime.Register("adapt", "(Landroid/graphics/ColorSpace;[FLandroid/graphics/ColorSpace$Adaptation;)Landroid/graphics/ColorSpace;", "", ApiSince=26)>]
static member Adapt : Android.Graphics.ColorSpace * single[] * Android.Graphics.ColorSpace.Adaptation -> Android.Graphics.ColorSpace

Parameters

colorSpace
ColorSpace

The color space to chromatically adapt

whitePoint
Single[]

The new white point

Returns

A ColorSpace instance with the same name, primaries, transfer functions and range as the specified color space

Attributes

Remarks

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