Class RasterNode

java.lang.Object
com.codename1.art.ArtNode
com.codename1.art.RasterNode

public class RasterNode extends ArtNode
A bitmap layer. One image pixel is one unit of the node's space, placed at the raster's own x, y.
  • Constructor Details

    • RasterNode

      public RasterNode(Raster image)

      Creates a raster layer.

      Parameters
      • image: 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: the new pixels
    • getLocalBounds

      public double[] getLocalBounds()
      Description copied from class: ArtNode
      The bounds of this node's own content in its own space as x, y, w, h, without effects; null when it has none.
      Specified by:
      getLocalBounds in class ArtNode
    • copy

      public ArtNode copy()
      Description copied from class: ArtNode
      A deep copy.
      Specified by:
      copy in class ArtNode