Pixbuf.composite

void composite(gdkpixbuf.pixbuf.Pixbuf dest, int destX, int destY, int destWidth, int destHeight, double offsetX, double offsetY, double scaleX, double scaleY, gdkpixbuf.types.InterpType interpType, int overallAlpha)

Creates a transformation of the source image src by scaling by scale_x and scale_y then translating by offset_x and offset_y.

This gives an image in the coordinates of the destination pixbuf. The rectangle (dest_x, dest_y, dest_width, dest_height) is then alpha blended onto the corresponding rectangle of the original destination image.

When the destination rectangle contains parts not in the source image, the data at the edges of the source image is replicated to infinity.

![](composite.png)

Parameters

destthe #GdkPixbuf into which to render the results
destXthe left coordinate for region to render
destYthe top coordinate for region to render
destWidththe width of the region to render
destHeightthe height of the region to render
offsetXthe offset in the X direction (currently rounded to an integer)
offsetYthe offset in the Y direction (currently rounded to an integer)
scaleXthe scale factor in the X direction
scaleYthe scale factor in the Y direction
interpTypethe interpolation type for the transformation.
overallAlphaoverall alpha for source image (0..255)