ImageEnvironment

constructor(incarnation: Incarnation<T, Euclidean2DPosition>, path: String)(source)

Parameters

incarnation

the incarnation to be used.

path

the path where to load the image. Must be a local file path.

Throws

if image file cannot be found, or if you disconnected your hard drive while this method was running.


constructor(incarnation: Incarnation<T, Euclidean2DPosition>, path: String, zoom: Double)(source)

Parameters

incarnation

the incarnation to be used.

path

the path where to load the image. Must be a local file path.

zoom

zoom level

Throws

if image file cannot be found, or if you disconnected your hard drive while this method was running.


constructor(incarnation: Incarnation<T, Euclidean2DPosition>, path: String, zoom: Double, dx: Double, dy: Double)(source)

Parameters

incarnation

the incarnation to be used.

path

the path where to load the image. Must be a local file path.

zoom

zoom level

dx

delta X position

dy

delta Y position

Throws

if image file cannot be found, or if you disconnected your hard drive while this method was running.


constructor(incarnation: Incarnation<T, Euclidean2DPosition>, obstacleColor: Int, path: String, zoom: Double, dx: Double, dy: Double)(source)

Parameters

incarnation

the incarnation to be used.

obstacleColor

integer representing the RGB color to use as color for the obstacle detection in image. Encoding follows common Java rules: getRGB

path

the path where to load the image. Must be a local file path.

zoom

zoom level

dx

delta X position

dy

delta Y position

Throws

if image file cannot be found, or if you disconnected your hard drive while this method was running.