# RenderIntent

Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/colorspace/RenderIntent.kt+class:androidx.compose.ui.graphics.colorspace.RenderIntent) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/All
- Cmn

  ```
  value class RenderIntent
  ```

*** ** * ** ***

A render intent determines how a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/Connector` maps colors from one color space to another. The choice of mapping is important when the source color space has a larger color gamut than the destination color space.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/package-summary#(androidx.compose.ui.graphics.colorspace.ColorSpace).connect(androidx.compose.ui.graphics.colorspace.ColorSpace,androidx.compose.ui.graphics.colorspace.RenderIntent)` |   |

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/RenderIntent` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/RenderIntent#Absolute()` Colors that are in the destination gamut are left unchanged. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/RenderIntent` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/RenderIntent#Perceptual()` Compresses the source gamut into the destination gamut. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/RenderIntent` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/RenderIntent#Relative()` Similar to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/RenderIntent#Absolute()` render intent, this render intent matches the closest color in the destination gamut but makes adjustments for the destination white point. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/RenderIntent` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/RenderIntent#Saturation()` Attempts to maintain the relative saturation of colors from the source gamut to the destination gamut, to keep highly saturated colors as saturated as possible. | Cmn |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/RenderIntent#toString()()` | Cmn |

## Public companion properties

### Absolute

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Absolute: RenderIntent
```

Colors that are in the destination gamut are left unchanged. Colors that fall outside of the destination gamut are mapped to the closest possible color within the gamut of the destination color space (they are clipped).

### Perceptual

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Perceptual: RenderIntent
```

Compresses the source gamut into the destination gamut. This render intent affects all colors, inside and outside of destination gamut. The goal of this render intent is to preserve the visual relationship between colors.

This render intent is currently not implemented and behaves like `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/RenderIntent#Relative()`.

### Relative

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Relative: RenderIntent
```

Similar to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/RenderIntent#Absolute()` render intent, this render intent matches the closest color in the destination gamut but makes adjustments for the destination white point.

### Saturation

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Saturation: RenderIntent
```

Attempts to maintain the relative saturation of colors from the source gamut to the destination gamut, to keep highly saturated colors as saturated as possible.

This render intent is currently not implemented and behaves like `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/RenderIntent#Relative()`.

## Public functions

### toString

Cmn

```
open fun toString(): String
```