toImageSource

actual fun PlatformFile.toImageSource(): ImageSource(source)

Reads PlatformFile as a still image, for a watermark or a title card.

Maps the same way toMediaSource does.

actual fun PlatformFile.toImageSource(): ImageSource(source)

Reads PlatformFile as a still image, for a watermark or a title card.

Maps the same way toMediaSource does.

expect fun PlatformFile.toImageSource(): ImageSource(source)

Reads PlatformFile as a still image, for a watermark or a title card.

Maps the same way toMediaSource does.

actual fun PlatformFile.toImageSource(): ImageSource(source)

Reads PlatformFile as a still image, for a watermark or a title card.

Maps the same way toMediaSource does.

actual fun PlatformFile.toImageSource(): ImageSource(source)

The same, for a still image.

A new URL every call, held until release frees it or the page unloads.

Throws

on a picked directory, which has no bytes to read.