gdk_pixbuf_scale_down


Description:


[ Version ( since = "4.21.0" ) ]
public Pixbuf gdk_pixbuf_scale_down (Pixbuf source, bool preserve_aspect_ratio, int dest_width, int dest_height)

Scales down the source to fit into the given width and height.

If aspect_ratio is true then the aspect ratio of source will be preserved.

If width is larger than the width of source and height is larger than the height of source , a reference to source will be returned, as it's unneccesary then to scale down.

The caller is responsible to free the returned Pixbuf using unref when no longer needed.

Parameters:

source

the source Pixbuf.

preserve_aspect_ratio

true to preserve aspect ratio.

dest_width

the max width for the result.

dest_height

the max height for the result.

Returns:

the resulting Pixbuf.


Namespace: Xfce
Package: libxfce4ui-2