Package 

Class RenderBuffer

  • All Implemented Interfaces:
    app.rive.core.CheckableAutoCloseable , java.lang.AutoCloseable

    
    public final class RenderBuffer
     implements CheckableAutoCloseable
                        

    Represents the pixels produced by rendering a frame off-screen.

    Pixels are stored in RGBA byte order, top-left origin.

    ⚠️ This class must be closed when you no longer need it to free its resources. The buffer creates and manages its own image surface, which is closed when the buffer is closed.

    The buffer is initially empty; use snapshot to fill it with rendered content, then access the image as a bitmap through toBitmap or copyInto.

    • Constructor Detail

      • RenderBuffer

        RenderBuffer(Integer width, Integer height, CommandQueue riveWorker)
        Parameters:
        width - The width of the buffer in pixels.
        height - The height of the buffer in pixels.
        riveWorker - The Rive worker used to create the underlying image surface.