pixbufFromFileAtMaxSize
fn
gdkpixbuf.pixbuf.Pixbuf pixbufFromFileAtMaxSize(string filename, int maxWidth, int maxHeight)Loads a new [gdkpixbuf.pixbuf.Pixbuf] from filename and returns it. 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, error is set and NULL is returned.
Parameters
filename | A file name |
maxWidth | The requested max width |
maxHeight | The requested max height |
Returns
A pixbuf, or null on error.
Throws
[ErrorWrap]
Deprecated
Use [rsvg.handle.Handle.newFromFile] and [rsvg.handle.Handle.renderDocument] instead.