Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public class 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
From ArtNode
getAttribute, setAttribute, getAttributes, getId, setId, getName, setName, isVisible, setVisible, isLocked, setLocked, getOpacity, setOpacity, getBlendMode, setBlendMode, getTransform, setTransform, getClipPath, setClipPath, getMask, setMask, isKnockout, setKnockout, isLuminanceMask, getEffects, copyBase, getBounds
Constructor details
RasterNode
public RasterNode(Raster image)Creates a raster layer.
Parameters
imageRaster- 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
imageRaster- 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.