Image

eu.joaocosta.minart.graphics.image.Image
object Image

Object containing user-friendly functions to images.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Image.type

Members list

Value members

Concrete methods

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

Loads an image in the BMP format.

Loads an image in the BMP format.

Attributes

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

Attributes

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

Loads an image in the PPM format.

Loads an image in the PPM format.

Attributes

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

Loads an image in the QOI format.

Loads an image in the QOI format.

Attributes

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

Stores an image in the BMP format.

Stores an image in the BMP format.

Attributes

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

Attributes

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

Stores an image in the PPM format.

Stores an image in the PPM format.

Attributes

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

Stores an image in the QOI format.

Stores an image in the QOI format.

Attributes