# GimpUi.PreviewArea.prototype.draw

    function draw(x: Number(gint), y: Number(gint), width: Number(gint), height: Number(gint), type: Gimp.ImageType, buf: ByteArray, rowstride: Number(gint)): void {
        // Gjs wrapper for gimp_preview_area_draw()
    }

Draws buf on area and queues a redraw on the given rectangle.

Since GIMP 2.2

x

  x offset in preview

y

  y offset in preview

width

  buffer width

height

  buffer height

type

  the Gimp.ImageType of buf

buf

  a #guchar buffer that contains the preview pixel data.

rowstride

  rowstride of buf