Warning: pixbuf_from_file_at_max_size is deprecated.
Loads a new `GdkPixbuf` from filename
and returns it.
Use [[email protected]_from_file] and [[email protected]_document] instead.
This pixbuf is uniformly scaled so that the it fits into a rectangle of size `max_width * max_height`. 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 |
max_width |
The requested max width |
max_height |
The requested max height |
A pixbuf, or null on error. |