RgbAdjustment.Builder
public final class RgbAdjustment.Builder
A builder for RgbAdjustment instances.
Summary
Public constructors |
|---|
Builder()Creates a new instance with default values. |
Public methods |
|
|---|---|
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 methods
setBlueScale
@CanIgnoreReturnValue
public RgbAdjustment.Builder setBlueScale(@FloatRange(from = 0) float blueScale)
Scales the blue channel of the frame by blueScale.
| Parameters | |
|---|---|
@FloatRange(from = 0) float blueScale |
The scale to apply to the blue channel. Needs to be non-negative and the default value is |
setGreenScale
@CanIgnoreReturnValue
public RgbAdjustment.Builder setGreenScale(@FloatRange(from = 0) float greenScale)
Scales the green channel of the frame by greenScale.
| Parameters | |
|---|---|
@FloatRange(from = 0) float greenScale |
The scale to apply to the green channel. Needs to be non-negative and the default value is |
setRedScale
@CanIgnoreReturnValue
public RgbAdjustment.Builder setRedScale(@FloatRange(from = 0) float redScale)
Scales the red channel of the frame by redScale.
| Parameters | |
|---|---|
@FloatRange(from = 0) float redScale |
The scale to apply to the red channel. Needs to be non-negative and the default value is |