RgbAdjustment.Builder
class RgbAdjustment.Builder
A builder for RgbAdjustment instances.
Summary
Public constructors |
|---|
Builder()Creates a new instance with default values. |
Public functions |
|
|---|---|
RgbAdjustment! |
build()Creates a new |
RgbAdjustment.Builder! |
@CanIgnoreReturnValueScales the blue channel of the frame by |
RgbAdjustment.Builder! |
@CanIgnoreReturnValueScales the green channel of the frame by |
RgbAdjustment.Builder! |
@CanIgnoreReturnValueScales the red channel of the frame by |
Public constructors
Public functions
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 |
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 |
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 |