Class RasterNode
java.lang.Object
com.codename1.art.ArtNode
com.codename1.art.RasterNode
A bitmap layer. One image pixel is one unit of the node's space, placed at the raster's
own
x, y.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ArtNode
copyBase, getBlendMode, getBounds, getClipPath, getEffects, getId, getMask, getName, getOpacity, getTransform, isKnockout, isLocked, isLuminanceMask, isVisible, setBlendMode, setClipPath, setId, setKnockout, setLocked, setMask, setName, setOpacity, setTransform, setVisible
-
Constructor Details
-
RasterNode
Creates a raster layer.
Parameters
image: the pixels
-
-
Method Details
-
getImage
The pixels. Changes write through; callArtModel.changedafter editing them. -
setImage
Replaces the pixels.
Parameters
image: the new pixels
-
getLocalBounds
public double[] getLocalBounds()Description copied from class:ArtNodeThe bounds of this node's own content in its own space asx, y, w, h, without effects; null when it has none.- Specified by:
getLocalBoundsin classArtNode
-
copy
-