GdkPixbuf::scale_simple

GdkPixbuf scale_simple(int dest_width, int dest_height, GdkInterpType interp_type);

Creates a new pixbuf by scaling the current one to the given size, respecting the aspect ratio.

The interp_type parameter defines which scaling algorithm is used. Generally, the higher the quality is, the longer it takes to scale.