eu.joaocosta.minart.graphics.image.ppm.PpmImageWriter
Image writer for PPM files.
Stores data as P6 PPM files with a 8 bit color range.
Attributes
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Known subtypes
-
Members list
Stores a surface to an OutputStream.
Stores a surface to an OutputStream.
Value parameters
-
os
-
OutputStream where to store the data
-
surface
-
Surface to store
Attributes
-
Returns
-
Either unit or an error string
Stores a surface to a Resource.
Stores a surface to a Resource.
Value parameters
-
resource
-
Resource where to store the data
-
surface
-
Surface to store
Attributes
-
Returns
-
Either unit or an error string, inside a Try capturing the IO exceptions
-
Inherited from:
-
ImageWriter
Returns the image data as a byte array.
Returns the image data as a byte array.
Value parameters
-
surface
-
Surface to convert
Attributes
-
Returns
-
Either an array with the image data or an error string
-
Inherited from:
-
ImageWriter