public static class SurfaceRasterizer.Result
- Object
- SurfaceRasterizer.Result
The output of a rasterization pass: pixels, action hit rectangles and the next re-render
deadline.
Methods
public Image getImage() | Returns the rasterized image. |
public int[] getArgb() | Returns the width*height ARGB pixels of the rasterized image. |
public List<SurfaceRasterizer.ActionRect> getActions() | Returns the hit rectangles of every node that carries an action, in image pixels. |
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. |
Inherited methods
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.