Warning: pixbuf_from_file_at_zoom_with_max is deprecated.
Loads a new `GdkPixbuf` from filename
and returns it.
Use [[email protected]_from_file] and [[email protected]_document] instead.
This pixbuf is scaled from the size indicated by the file by a factor of x_zoom
and y_zoom
. If the resulting
pixbuf would be larger than max_width/max_heigh it is uniformly scaled down to fit in that rectangle. The caller must assume the
reference to the returned pixbuf. If an error occurred, throws is set and `NULL` is returned.
filename |
A file name |
x_zoom |
The horizontal zoom factor |
y_zoom |
The vertical zoom factor |
max_width |
The requested max width |
max_height |
The requested max height |
A pixbuf, or null on error. |