pixbufFromFileAtSize

fngdkpixbuf.pixbuf.Pixbuf pixbufFromFileAtSize(string filename, int width, int height)

Loads a new [gdkpixbuf.pixbuf.Pixbuf] from filename and returns it. This pixbuf is scaled from the size indicated to the new size indicated by width and height. If both of these are -1, then the default size of the image being loaded is used. The caller must assume the reference to the returned pixbuf. If an error occurred, error is set and NULL is returned.

Parameters

filenameA file name
widthThe new width, or -1
heightThe new height, or -1

Returns

A pixbuf, or null on error.

Throws

[ErrorWrap]

Deprecated

Use [rsvg.handle.Handle.newFromFile] and [rsvg.handle.Handle.renderDocument] instead.