Class SurfaceRasterizer.Result

java.lang.Object
com.codename1.surfaces.SurfaceRasterizer.Result
Enclosing class:
SurfaceRasterizer

public static class SurfaceRasterizer.Result extends Object
The output of a rasterization pass: pixels, action hit rectangles and the next re-render deadline.
  • Method Details

    • getImage

      public Image getImage()
      Returns the rasterized image.
    • getArgb

      public int[] getArgb()
      Returns the width*height ARGB pixels of the rasterized image.
    • getActions

      public List<SurfaceRasterizer.ActionRect> getActions()
      Returns the hit rectangles of every node that carries an action, in image pixels.
    • getNextTickMillis

      public long getNextTickMillis()
      Returns 0 when the content is static; otherwise the epoch millis when a re-render is due -- a one second cadence while a timer countdown or a date-interval progress is visible, the next minute boundary for clock and relative text.