ColorSpace.Connector.Transform Method

Definition

Overloads

Transform(Single[])

Transforms the specified color from the source color space to a color in the destination color space.

Transform(Single, Single, Single)

Transforms the specified color from the source color space to a color in the destination color space.

Transform(Single[])

Transforms the specified color from the source color space to a color in the destination color space.

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

Parameters

v
Single[]

A non-null array of 3 floats containing the value to transform and that will hold the result of the transform

Returns

Single[]

The v array passed as a parameter, containing the specified color transformed from the source space to the destination space

Attributes

Remarks

Transforms the specified color from the source color space to a color in the destination color space.

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

Transform(Single, Single, Single)

Transforms the specified color from the source color space to a color in the destination color space.

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

Parameters

r
Single

The red component of the color to transform

g
Single

The green component of the color to transform

b
Single

The blue component of the color to transform

Returns

Single[]

A new array of 3 floats containing the specified color transformed from the source space to the destination space

Attributes

Remarks

Transforms the specified color from the source color space to a color in the destination color space. This convenience method assumes a source color model with 3 components (typically RGB). To transform from color models with more than 3 components, such as Model#CMYK CMYK, use #transform(float[]) instead.

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