saveImage

open fun saveImage(imageData: ImageData, filename: String, formatHint: ImageFileFormat?)(source)

Save an image to filename

Since

0.4.5

Parameters

imageData

an ImageData instance holding the pixel data to be saved

filename

the filename to save the image to

formatHint

the format to use


abstract fun saveImage(imageData: ImageData, filename: String, configuration: ImageSaveConfiguration)(source)

Saves the provided image data to the specified filename using the given configuration.

Parameters

imageData

The image data to be saved.

filename

The name of the output file where the image will be saved.

configuration

The configuration specifying the settings for saving the image.


open fun saveImage(imageData: ImageData, filename: String, saveContext: ImageSaveContext.() -> ImageSaveConfiguration)(source)

Saves the provided image data to the specified filename using a custom save configuration.

Parameters

imageData

The image data to be saved.

filename

The name of the output file where the image will be saved.

saveContext

A lambda defining the custom save configuration within the context of ImageSaveContext.