← back to roto on ba3a.dev

write

fun write(raster: Raster, path: Path)

Writes raster to path through AtomicFile, so a crash never leaves a half-written file.


fun write(raster: Raster, output: OutputStream)

Writes raster to output, which is not closed.