toPngImage

fun ImageBitmap.toPngImage(path: Path): Boolean(source)
fun Painter.toPngImage(path: Path): Boolean(source)