Pixbuf.scale

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

Creates a transformation of the source image src by scaling by scale_x and scale_y then translating by offset_x and offset_y, then renders the rectangle (dest_x, dest_y, dest_width, dest_height) of the resulting image onto the destination image replacing the previous contents.

Try to use [gdkpixbuf.pixbuf.Pixbuf.scaleSimple] first; this function is the industrial-strength power tool you can fall back to, if [gdkpixbuf.pixbuf.Pixbuf.scaleSimple] isn't powerful enough.

If the source rectangle overlaps the destination rectangle on the same pixbuf, it will be overwritten during the scaling which results in rendering artifacts.

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.