Pixbuf.scale

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 Pixbuf.scaleSimple first, this function is the industrial-strength power tool you can fall back to if 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.

class Pixbuf
void
scale

Parameters

dest Pixbuf

the gdk.Pixbuf 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.