RgbAdjustment.Builder


class RgbAdjustment.Builder


A builder for RgbAdjustment instances.

Summary

Public constructors

Creates a new instance with default values.

Public functions

RgbAdjustment!

Creates a new RgbAdjustment instance.

RgbAdjustment.Builder!

Scales the blue channel of the frame by blueScale.

RgbAdjustment.Builder!

Scales the green channel of the frame by greenScale.

RgbAdjustment.Builder!

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 RgbAdjustment instance.

setBlueScale

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

Scales the blue channel of the frame by blueScale.

Parameters
blueScale: @FloatRange(from = 0) Float

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: @FloatRange(from = 0) Float

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: @FloatRange(from = 0) Float

The scale to apply to the red channel. Needs to be non-negative and the default value is 1.