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
dest | the #GdkPixbuf into which to render the results |
destX | the left coordinate for region to render |
destY | the top coordinate for region to render |
destWidth | the width of the region to render |
destHeight | the height of the region to render |
offsetX | the offset in the X direction (currently rounded to an integer) |
offsetY | the offset in the Y direction (currently rounded to an integer) |
scaleX | the scale factor in the X direction |
scaleY | the scale factor in the Y direction |
interpType | the interpolation type for the transformation. |