BmpImageWriter

eu.joaocosta.minart.graphics.image.bmp.BmpImageWriter
trait BmpImageWriter[ByteSeq] extends ImageWriter

Image writer for BMP files.

Stores data as uncompressed 24bit Windows BMPs.

Attributes

Graph
Supertypes
trait ImageWriter
class Object
trait Matchable
class Any
Known subtypes
class BmpImageFormat[R, W]

Members list

Value members

Concrete methods

def storeImage(surface: Surface, os: OutputStream): Either[String, Unit]

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 methods

def storeImage(surface: Surface, resource: Resource): Try[Either[String, Unit]]

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
def toByteArray(surface: Surface): Either[String, Array[Byte]]

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

Abstract fields

val byteWriter: ByteWriter[ByteSeq]