BmpImageReader

eu.joaocosta.minart.graphics.image.bmp.BmpImageReader
trait BmpImageReader extends ImageReader

Image reader for BMP files.

Supports uncompressed 24/32bit Windows BMPs.

Attributes

Graph
Supertypes
trait ImageReader
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

final def loadImage(is: InputStream): Either[String, RamSurface]

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 methods

def fromByteArray(data: Array[Byte]): Either[String, RamSurface]

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
def loadImage(resource: Resource): Try[Either[String, RamSurface]]

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