download

infix fun download(imageUrl: String): Result<BufferedImage>(source)

Downloads and decodes an image from the given URL.

Return

the downloaded image, or Result.failure if imageUrl is invalid, unreachable, or does not decode to a known image format

Parameters

imageUrl

the url of the image to download