GimpUi.Preview::draw_buffer

function vfunc_draw_buffer(buffer: ByteArray, rowstride: Number(gint)): void {
}
  

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