Added in API level 26

TransferParameters


open class TransferParameters
kotlin.Any
   ↳ android.graphics.ColorSpace.Rgb.TransferParameters

Defines the parameters for the ICC parametric curve type 4, as defined in ICC.1:2004-10, section 10.15.

The EOTF is of the form:

\(\begin{equation} Y = \begin{cases}c X + f & X \lt d \\\ \left( a X + b \right) ^{g} + e & X \ge d \end{cases} \end{equation}\)

The corresponding OETF is simply the inverse function.

The parameters defined by this class form a valid transfer function only if all the following conditions are met:

  • No parameter is a Not-a-Number
  • \(d\) is in the range \([0..1]\)
  • The function is not constant
  • The function is positive and increasing

Summary

Public constructors

Defines the parameters for the ICC parametric curve type 3, as defined in ICC.

TransferParameters(a: Double, b: Double, c: Double, d: Double, e: Double, f: Double, g: Double)

Defines the parameters for the ICC parametric curve type 4, as defined in ICC.

Public methods
open Boolean
equals(other: Any?)

open Int

Properties
Double

Variable \(a\) in the equation of the EOTF described above.

Double

Variable \(b\) in the equation of the EOTF described above.

Double

Variable \(c\) in the equation of the EOTF described above.

Double

Variable \(d\) in the equation of the EOTF described above.

Double

Variable \(e\) in the equation of the EOTF described above.

Double

Variable \(f\) in the equation of the EOTF described above.

Double

Variable \(g\) in the equation of the EOTF described above.

Public constructors

TransferParameters

Added in API level 26
TransferParameters(
    a: Double,
    b: Double,
    c: Double,
    d: Double,
    g: Double)

Defines the parameters for the ICC parametric curve type 3, as defined in ICC.1:2004-10, section 10.15.

The EOTF is of the form:

\(\begin{equation} Y = \begin{cases}c X & X \lt d \\\ \left( a X + b \right) ^{g} & X \ge d \end{cases} \end{equation}\)

This constructor is equivalent to setting \(e\) and \(f\) to 0.

Parameters
a Double: The value of \(a\) in the equation of the EOTF described above
b Double: The value of \(b\) in the equation of the EOTF described above
c Double: The value of \(c\) in the equation of the EOTF described above
d Double: The value of \(d\) in the equation of the EOTF described above
g Double: The value of \(g\) in the equation of the EOTF described above
Exceptions
java.lang.IllegalArgumentException If the parameters form an invalid transfer function

TransferParameters

Added in API level 26
TransferParameters(
    a: Double,
    b: Double,
    c: Double,
    d: Double,
    e: Double,
    f: Double,
    g: Double)

Defines the parameters for the ICC parametric curve type 4, as defined in ICC.1:2004-10, section 10.15.

Parameters
a Double: The value of \(a\) in the equation of the EOTF described above
b Double: The value of \(b\) in the equation of the EOTF described above
c Double: The value of \(c\) in the equation of the EOTF described above
d Double: The value of \(d\) in the equation of the EOTF described above
e Double: The value of \(e\) in the equation of the EOTF described above
f Double: The value of \(f\) in the equation of the EOTF described above
g Double: The value of \(g\) in the equation of the EOTF described above
Exceptions
java.lang.IllegalArgumentException If the parameters form an invalid transfer function

Public methods

equals

Added in API level 26
open fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

hashCode

Added in API level 26
open fun hashCode(): Int
Return
Int a hash code value for this object.

Properties

a

Added in API level 26
val a: Double

Variable \(a\) in the equation of the EOTF described above.

b

Added in API level 26
val b: Double

Variable \(b\) in the equation of the EOTF described above.

c

Added in API level 26
val c: Double

Variable \(c\) in the equation of the EOTF described above.

d

Added in API level 26
val d: Double

Variable \(d\) in the equation of the EOTF described above.

e

Added in API level 26
val e: Double

Variable \(e\) in the equation of the EOTF described above.

f

Added in API level 26
val f: Double

Variable \(f\) in the equation of the EOTF described above.

g

Added in API level 26
val g: Double

Variable \(g\) in the equation of the EOTF described above.