# RgbAdjustment.Builder

Artifact: [androidx.media3:media3-effect](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/effect/RgbAdjustment.java+class:androidx.media3.effect.RgbAdjustment.Builder)

*** ** * ** ***


```
class RgbAdjustment.Builder
```

<br />

*** ** * ** ***

A builder for `https://developer.android.com/reference/kotlin/androidx/media3/effect/RgbAdjustment` instances.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/effect/RgbAdjustment.Builder#Builder()()` Creates a new instance with default values. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/effect/RgbAdjustment!` | `https://developer.android.com/reference/kotlin/androidx/media3/effect/RgbAdjustment.Builder#build()()` Creates a new `https://developer.android.com/reference/kotlin/androidx/media3/effect/RgbAdjustment` instance. |
| `https://developer.android.com/reference/kotlin/androidx/media3/effect/RgbAdjustment.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/effect/RgbAdjustment.Builder#setBlueScale(float)(blueScale: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Scales the blue channel of the frame by `blueScale`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/effect/RgbAdjustment.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/effect/RgbAdjustment.Builder#setGreenScale(float)(greenScale: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Scales the green channel of the frame by `greenScale`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/effect/RgbAdjustment.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/effect/RgbAdjustment.Builder#setRedScale(float)(redScale: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Scales the red channel of the frame by `redScale`. |

## Public constructors

### Builder

```
Builder()
```

Creates a new instance with default values.

## Public functions

### build

```
fun build(): RgbAdjustment!
```

Creates a new `https://developer.android.com/reference/kotlin/androidx/media3/effect/RgbAdjustment` instance.

### setBlueScale

```
@CanIgnoreReturnValue
fun setBlueScale(blueScale: @FloatRange(from = 0) Float): RgbAdjustment.Builder!
```

Scales the blue channel of the frame by `blueScale`.

| Parameters |
|---|---|
| `blueScale: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The scale to apply to the blue channel. Needs to be non-negative and the default value is `1`. |

### setGreenScale

```
@CanIgnoreReturnValue
fun setGreenScale(greenScale: @FloatRange(from = 0) Float): RgbAdjustment.Builder!
```

Scales the green channel of the frame by `greenScale`.

| Parameters |
|---|---|
| `greenScale: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The scale to apply to the green channel. Needs to be non-negative and the default value is `1`. |

### setRedScale

```
@CanIgnoreReturnValue
fun setRedScale(redScale: @FloatRange(from = 0) Float): RgbAdjustment.Builder!
```

Scales the red channel of the frame by `redScale`.

| Parameters |
|---|---|
| `redScale: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The scale to apply to the red channel. Needs to be non-negative and the default value is `1`. |