pixbuf_from_file_at_size


Description:


[ Version ( deprecated = true ) ]
public Pixbuf? pixbuf_from_file_at_size (string filename, int width, int height) throws Error

Warning: pixbuf_from_file_at_size is deprecated.

Loads a new `GdkPixbuf` from filename and returns it.

Note:

Use [[email protected]_from_file] and [[email protected]_document] instead.

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, throws is set and `NULL` is returned.

Parameters:

filename

A file name

width

The new width, or -1

height

The new height, or -1

Returns:

A pixbuf, or null on error.


Namespace: Rsvg
Package: librsvg-2.0



2022 vala-language.org