saveToFile

abstract fun saveToFile(file: File, imageFileFormat: ImageFileFormat = ImageFileFormat.guessFromExtension(file.extension) ?: ImageFileFormat.PNG, async: Boolean = true)(source)
abstract fun saveToFile(file: File, async: Boolean = true, configuration: ImageSaveConfiguration)(source)
fun saveToFile(file: File, async: Boolean = true, configurator: ImageSaveContext.() -> ImageSaveConfiguration)(source)

save the ColorBuffer to File