Pixbuf.composite

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.

class Pixbuf
void
composite

Parameters

dest Pixbuf

the #GdkPixbuf into which to render the results

destX int

the left coordinate for region to render

destY int

the top coordinate for region to render

destWidth int

the width of the region to render

destHeight int

the height of the region to render

offsetX double

the offset in the X direction (currently rounded to an integer)

offsetY double

the offset in the Y direction (currently rounded to an integer)

scaleX double

the scale factor in the X direction

scaleY double

the scale factor in the Y direction

interpType GdkInterpType

the interpolation type for the transformation.

overallAlpha int

overall alpha for source image (0..255)

Meta