image

fun image(uri: Uri, durationMs: Long, frameRate: Int = 30, block: EffectsBuilder.() -> Unit = {}): SequenceBuilder

Convenience function for adding an image to the sequence.

The image will be converted to a video with the specified durationMs and frameRate.

Return

The SequenceBuilder instance.

Parameters

uri

The Uri of the image to add.

durationMs

The duration of the image in milliseconds.

frameRate

The frame rate of the image.

block

A lambda to configure the EffectsBuilder.


fun image(file: File, durationMs: Long, frameRate: Int = 30, block: EffectsBuilder.() -> Unit = {}): SequenceBuilder

Convenience function for adding an image to the sequence.

The image will be converted to a video with the specified durationMs and frameRate.

Return

The SequenceBuilder instance.

Parameters

file

The File of the image to add.

durationMs

The duration of the image in milliseconds.

frameRate

The frame rate of the image.

block

A lambda to configure the EffectsBuilder.