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