Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public class RasterNode

  1. Object
  2. ArtNode
  3. RasterNode
A bitmap layer. One image pixel is one unit of the node’s space, placed at the raster’s own x, y.

Constructors

public RasterNode(Raster image)Creates a raster layer.

Methods

public Raster getImage()The pixels.
public void setImage(Raster image)Replaces the pixels.
public double[] getLocalBounds()The bounds of this node’s own content in its own space as x, y, w, h, without effects; null when it has none.
public ArtNode copy()A deep copy.

Inherited methods

Constructor details

RasterNode

public RasterNode(Raster image)
Creates a raster layer.

Parameters

image Raster
the pixels

Method details

getImage

public Raster getImage()
The pixels. Changes write through; call ArtModel.changed after editing them.

setImage

public void setImage(Raster image)
Replaces the pixels.

Parameters

image Raster
the new pixels

getLocalBounds

public double[] getLocalBounds()
The bounds of this node’s own content in its own space as x, y, w, h, without effects; null when it has none.

copy

public ArtNode copy()
A deep copy.