imageOverlay

fun EffectsBuilder.imageOverlay(image: ImageSource, corner: Corner, margin: Float = ImageOverlay.DEFAULT_MARGIN, scale: Float = ImageOverlay.DEFAULT_SCALE, opacity: Float = 1.0f, visibleDuring: TimeRange? = null, animation: OverlayAnimation? = null): EffectsBuilder(source)

Composite image into corner, sized and inset as fractions of the frame it is drawn on.

That frame is the clip's frame when this is called on a clip, and the output frame when it is called on the composition.


fun EffectsBuilder.imageOverlay(image: ImageSource, corner: Corner, at: ClosedRange<Duration>, margin: Float = ImageOverlay.DEFAULT_MARGIN, scale: Float = ImageOverlay.DEFAULT_SCALE, opacity: Float = 1.0f, animation: OverlayAnimation? = null): EffectsBuilder(source)

Composite image into corner, visible only during at.

Sized and inset the same way as the overload that takes a TimeRange.