Pixbuf.scaleSimple

Create a new GdkPixbuf containing a copy of src scaled to dest_width x dest_height. Leaves src unaffected. interp_type should be GDK_INTERP_NEAREST if you want maximum speed (but when scaling down GDK_INTERP_NEAREST is usually unusably ugly). The default interp_type should be GDK_INTERP_BILINEAR which offers reasonable quality and speed. You can scale a sub-portion of src by creating a sub-pixbuf pointing into src; see gdk_pixbuf_new_subpixbuf(). For more complicated scaling/compositing see gdk_pixbuf_scale() and gdk_pixbuf_composite().

class Pixbuf
scaleSimple

Parameters

destWidth int

the width of destination image

destHeight int

the height of destination image

interpType GdkInterpType

the interpolation type for the transformation.

Return Value

Type: Pixbuf

the new GdkPixbuf, or NULL if not enough memory could be allocated for it. [transfer full]

Meta