Image reader and writer for BMP files.
Supports reading uncompressed 24/32bit Windows BMPs and writing uncompressed 24 bit Windows BMPs.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait BmpImageWritertrait ImageWritertrait BmpImageReadertrait ImageReaderclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
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 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
- Inherited from:
- BmpImageReader
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
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
- Inherited from:
- BmpImageWriter
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