Stores a surface to an OutputStream.
Stores a surface to an OutputStream.
Surface to store
OutputStream where to store the data
Either unit or an error string
Stores a surface to a Resource.
Stores a surface to a Resource.
Surface to store
Resource where to store the data
Either unit or an error string, inside a Try capturing the IO exceptions
Returns the image data as a byte array.
Returns the image data as a byte array.
Surface to convert
Either a RamSurface with the image data or an error string
Image writer for PPM files.
Stores data as P6 PPM files with a 8 bit color range.