# GimpUi.Preview.prototype.draw_buffer

    function draw_buffer(buffer: ByteArray, rowstride: Number(gint)): void {
        // Gjs wrapper for gimp_preview_draw_buffer()
    }

Calls the GimpPreview::draw_buffer method. GimpPreview itself doesn't implement this method so the behavior is determined by the derived class implementing this method.

Since 2.2

buffer

  a pixel buffer the size of the preview

rowstride

  the buffer's rowstride