# ColorSpace.Rgb.TransferParameters

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# TransferParameters

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/graphics/ColorSpace.Rgb.TransferParameters "View this page in Java")  

```
open class TransferParameters
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                           ||
| ↳ | [android.graphics.ColorSpace.Rgb.TransferParameters](https://developer.android.com/reference/kotlin/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](https://developer.android.com/reference/kotlin/java/lang/Double.html#isNaN(kotlin.Double))
- \\(d\\) is in the range \\(\[0..1\]\\)
- The function is not constant
- The function is positive and increasing

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [TransferParameters](https://developer.android.com/reference/kotlin/android/graphics/ColorSpace.Rgb.TransferParameters#TransferParameters(kotlin.Double,%20kotlin.Double,%20kotlin.Double,%20kotlin.Double,%20kotlin.Double))`(`a:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `b:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `c:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `d:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `g:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`)` Defines the parameters for the ICC parametric curve type 3, as defined in ICC.                                                                                                                                                                                                                     |
| [TransferParameters](https://developer.android.com/reference/kotlin/android/graphics/ColorSpace.Rgb.TransferParameters#TransferParameters(kotlin.Double,%20kotlin.Double,%20kotlin.Double,%20kotlin.Double,%20kotlin.Double,%20kotlin.Double,%20kotlin.Double))`(`a:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `b:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `c:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `d:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `e:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `f:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `g:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`)` Defines the parameters for the ICC parametric curve type 4, as defined in ICC. |

|                                                                                                                                                     Public methods                                                                                                                                                      ||
|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/android/graphics/ColorSpace.Rgb.TransferParameters#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` <br /> |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)         | [hashCode](https://developer.android.com/reference/kotlin/android/graphics/ColorSpace.Rgb.TransferParameters#hashCode())`()` <br />                                                                                             |

|                                                                                                                               Properties                                                                                                                               ||
|----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | [a](https://developer.android.com/reference/kotlin/android/graphics/ColorSpace.Rgb.TransferParameters#a:kotlin.Double) Variable \\(a\\) in the equation of the EOTF described above. |
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | [b](https://developer.android.com/reference/kotlin/android/graphics/ColorSpace.Rgb.TransferParameters#b:kotlin.Double) Variable \\(b\\) in the equation of the EOTF described above. |
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | [c](https://developer.android.com/reference/kotlin/android/graphics/ColorSpace.Rgb.TransferParameters#c:kotlin.Double) Variable \\(c\\) in the equation of the EOTF described above. |
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | [d](https://developer.android.com/reference/kotlin/android/graphics/ColorSpace.Rgb.TransferParameters#d:kotlin.Double) Variable \\(d\\) in the equation of the EOTF described above. |
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | [e](https://developer.android.com/reference/kotlin/android/graphics/ColorSpace.Rgb.TransferParameters#e:kotlin.Double) Variable \\(e\\) in the equation of the EOTF described above. |
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | [f](https://developer.android.com/reference/kotlin/android/graphics/ColorSpace.Rgb.TransferParameters#f:kotlin.Double) Variable \\(f\\) in the equation of the EOTF described above. |
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | [g](https://developer.android.com/reference/kotlin/android/graphics/ColorSpace.Rgb.TransferParameters#g:kotlin.Double) Variable \\(g\\) in the equation of the EOTF described above. |

## Public constructors

### TransferParameters

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
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](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):The value of \\(a\\) in the equation of the EOTF described above |
| `b` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):The value of \\(b\\) in the equation of the EOTF described above |
| `c` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):The value of \\(c\\) in the equation of the EOTF described above |
| `d` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):The value of \\(d\\) in the equation of the EOTF described above |
| `g` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
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](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):The value of \\(a\\) in the equation of the EOTF described above |
| `b` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):The value of \\(b\\) in the equation of the EOTF described above |
| `c` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):The value of \\(c\\) in the equation of the EOTF described above |
| `d` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):The value of \\(d\\) in the equation of the EOTF described above |
| `e` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):The value of \\(e\\) in the equation of the EOTF described above |
| `f` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):The value of \\(f\\) in the equation of the EOTF described above |
| `g` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun equals(other: Any?): Boolean
```

|                     Parameters                     ||
|-------|---------------------------------------------|
| `obj` | the reference object with which to compare. |

|                                                                           Return                                                                           ||
|------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true`if this object is the same as the obj argument;`false`otherwise. |

### hashCode

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun hashCode(): Int
```

|                                                     Return                                                     ||
|----------------------------------------------------------------------------|------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |

## Properties

### a

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
val a: Double
```

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

### b

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
val b: Double
```

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

### c

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
val c: Double
```

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

### d

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
val d: Double
```

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

### e

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
val e: Double
```

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

### f

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
val f: Double
```

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

### g

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
val g: Double
```

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