eu.joaocosta.minart.graphics.image.ImageWriter
Image writer with a low-level implementation on how to store an image.
Attributes
- Graph
- Supertypes
class Object
trait Matchable
class Any
- Known subtypes
Members list
Concise view
Value members
Stores a surface to an OutputStream.
Stores a surface to an OutputStream.
Attributes
- os
OutputStream where to store the data
- surface
Surface to store
- Returns:
Either unit or an error string
Stores a surface to a Resource.
Stores a surface to a Resource.
Attributes
- resource
Resource where to store the data
- surface
Surface to store
- Returns:
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.
Attributes
- surface
Surface to convert
- Returns:
Either an array with the image data or an error string