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