StaticOverlaySettings.Builder
class StaticOverlaySettings.Builder
A builder for StaticOverlaySettings instances.
Summary
Public functions |
|
|---|---|
StaticOverlaySettings! |
build()Creates an instance of |
StaticOverlaySettings.Builder! |
@CanIgnoreReturnValueSets the alpha scale value of the overlay, altering its translucency. |
StaticOverlaySettings.Builder! |
@CanIgnoreReturnValueSets the coordinates for the anchor point of the overlay within the background frame. |
StaticOverlaySettings.Builder! |
@CanIgnoreReturnValueSet the luminance multiplier of an SDR overlay when overlaid on a HDR frame. |
StaticOverlaySettings.Builder! |
@CanIgnoreReturnValueSets the coordinates for the anchor point within the overlay. |
StaticOverlaySettings.Builder! |
@CanIgnoreReturnValueSets the rotation of the overlay, counter-clockwise. |
StaticOverlaySettings.Builder! |
@CanIgnoreReturnValueSets the scaling of the overlay. |
Public functions
build
fun build(): StaticOverlaySettings!
Creates an instance of StaticOverlaySettings, using defaults if values are unset.
setAlphaScale
@CanIgnoreReturnValue
fun setAlphaScale(alphaScale: @FloatRange(from = 0) Float): StaticOverlaySettings.Builder!
Sets the alpha scale value of the overlay, altering its translucency.
| See also | |
|---|---|
getAlphaScale |
setBackgroundFrameAnchor
@CanIgnoreReturnValue
fun setBackgroundFrameAnchor(
x: @FloatRange(from = "-1", to = 1) Float,
y: @FloatRange(from = "-1", to = 1) Float
): StaticOverlaySettings.Builder!
Sets the coordinates for the anchor point of the overlay within the background frame.
| See also | |
|---|---|
getBackgroundFrameAnchor |
setHdrLuminanceMultiplier
@CanIgnoreReturnValue
fun setHdrLuminanceMultiplier(hdrLuminanceMultiplier: Float): StaticOverlaySettings.Builder!
Set the luminance multiplier of an SDR overlay when overlaid on a HDR frame.
| See also | |
|---|---|
getHdrLuminanceMultiplier |
setOverlayFrameAnchor
@CanIgnoreReturnValue
fun setOverlayFrameAnchor(
x: @FloatRange(from = "-1", to = 1) Float,
y: @FloatRange(from = "-1", to = 1) Float
): StaticOverlaySettings.Builder!
Sets the coordinates for the anchor point within the overlay.
| See also | |
|---|---|
getOverlayFrameAnchor |
setRotationDegrees
@CanIgnoreReturnValue
fun setRotationDegrees(rotationDegree: Float): StaticOverlaySettings.Builder!
Sets the rotation of the overlay, counter-clockwise.
| See also | |
|---|---|
getRotationDegrees |
setScale
@CanIgnoreReturnValue
fun setScale(x: Float, y: Float): StaticOverlaySettings.Builder!
Sets the scaling of the overlay.
| See also | |
|---|---|
getScale |