GimpUi.PreviewArea.prototype.blend

function blend(x: Number(gint), y: Number(gint), width: Number(gint), height: Number(gint), type: Gimp.ImageType, buf1: ByteArray, rowstride1: Number(gint), buf2: ByteArray, rowstride2: Number(gint), opacity: Number(guint8)): void {
    // Gjs wrapper for gimp_preview_area_blend()
}
  

Composites buf1 on buf2 with the given opacity, draws the result to 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 buf1 and buf2

buf1

a #guchar buffer that contains the pixel data for the lower layer

rowstride1

rowstride of buf1

buf2

a #guchar buffer that contains the pixel data for the upper layer

rowstride2

rowstride of buf2

opacity

The opacity of the first layer.