eu.joaocosta.minart.graphics.image.ppm.PpmImageReader
See thePpmImageReader companion object
Image reader for PGM/PPM files.
Supports P2, P3, P5 and P6 PGM/PPM files with a 8 bit color range.
Attributes
-
Companion
-
object
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Known subtypes
-
Members list
Loads an image from an InputStream.
Loads an image from an InputStream.
Value parameters
-
is
-
InputStream with the image data
Attributes
-
Returns
-
Either a RamSurface with the image data or an error string
Loads an image from a byte array.
Loads an image from a byte array.
Value parameters
-
data
-
Byte array
Attributes
-
Returns
-
Either a RamSurface with the image data or an error string
-
Inherited from:
-
ImageReader
Loads an image from a Resource.
Loads an image from a Resource.
Value parameters
-
resource
-
Resource with the image data
Attributes
-
Returns
-
Either a RamSurface with the image data or an error string, inside a Try capturing the IO exceptions
-
Inherited from:
-
ImageReader