Package: gdk-pixbuf

Function gdk-pixbuf-composite

Lambda List

gdk-pixbuf-composite (src dest x y width height xoffset yoffset xscale  yscale interp alpha)

Arguments

src -- a gdk-pixbuf object
dest -- a gdk-pixbuf object into which to render the results
x -- an integer with the left coordinate for region to render
y -- an integer with the top coordinate for region to render
width -- an integer with the width of the region to render
height -- an integer with the height of the region to render
xoffset -- a double float with the offset in the x direction, currently rounded to an integer
yoffset -- a double float with the offset in the y direction, currently rounded to an integer
xscale -- a double float with the scale factor in the x direction
yscale -- a double float with the scale factor in the y direction
interp -- a gdk-interp-type interpolation type for the transformation
alpha -- an integer with the overall alpha for source image (0..255)

Details

Creates a transformation of the source image src by scaling by xscale and yscale then translating by xoffset and yoffset. This gives an image in the coordinates of the destination pixbuf. The rectangle (x, y, width, height) is then composited 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.



 

See also

*2021-12-12