LoadBitmap

doodle.algebra.LoadBitmap
See theLoadBitmap companion object
trait LoadBitmap[Specifier, Bitmap]

Algebra for loading bitmap images from various sources.

This algebra is parameterized by:

Type parameters

Bitmap

the type of the resulting bitmap (e.g. BufferedImage on JVM, HTMLImageElement on JS)

Specifier

the type used to specify where to find a bitmap (e.g. File on JVM, String URL on JS)

Attributes

Companion
object
Source
LoadBitmap.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def load(specifier: Specifier): IO[Bitmap]

Load a bitmap from the given specifier.

Load a bitmap from the given specifier.

Returns an IO that either succeeds with the loaded bitmap or fails with a BitmapError.

Attributes

Source
LoadBitmap.scala