Package: gdk-pixbuf
Function gdk-pixbuf:pixbuf-composite
Lambda Listgdk-pixbuf:pixbuf-composite (src dest x y width height xoffset yoffset xscale
yscale interp alpha) Argumentssrc -- a gdk-pixbuf:pixbuf object dest -- a gdk-pixbuf: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 number coerced to a double float with the offset in the x direction, currently rounded to an integer yoffset -- a number coerced to a double float with the offset in the y direction, currently rounded to an integer xscale -- a number coerced to a double float with the scale factor in the x direction yscale -- a number coerced to a double float with the scale factor in the y direction interp -- a gdk-pixbuf:pixbuf-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 |
#2024-6-29