Image

object Image

Object containing user-friendly functions to images.

class Object
trait Matchable
class Any
Image.type

Value members

Concrete methods

def loadBmpImage(resource: Resource): Try[RamSurface]

Loads an image in the BMP format.

Loads an image in the BMP format.

def loadImage(loader: ImageReader, resource: Resource): Try[RamSurface]

Loads an image using a custom ImageReader.

Loads an image using a custom ImageReader.

Value parameters:
loader

ImageReader to use

resource

Resource pointing to the image

def loadPpmImage(resource: Resource): Try[RamSurface]

Loads an image in the PPM format.

Loads an image in the PPM format.

def loadQoiImage(resource: Resource): Try[RamSurface]

Loads an image in the QOI format.

Loads an image in the QOI format.

def storeBmpImage(surface: Surface, resource: Resource): Try[Unit]

Stores an image in the BMP format.

Stores an image in the BMP format.

def storeImage(writer: ImageWriter, surface: Surface, resource: Resource): Try[Unit]

Stores an image using a custom ImageWriter.

Stores an image using a custom ImageWriter.

Value parameters:
resource

Resource pointing to the output destination

surface

Surface to store

writer

ImageWriter to use

def storePpmImage(surface: Surface, resource: Resource): Try[Unit]

Stores an image in the PPM format.

Stores an image in the PPM format.

def storeQoiImage(surface: Surface, resource: Resource): Try[Unit]

Stores an image in the QOI format.

Stores an image in the QOI format.