pixbuf_from_file_at_max_size


Description:


[ Version ( deprecated = true ) ]
public Pixbuf? pixbuf_from_file_at_max_size (string filename, int max_width, int max_height) throws Error

Warning: pixbuf_from_file_at_max_size is deprecated.

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

Note:

Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_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.

Parameters:

filename

A file name

max_width

The requested max width

max_height

The requested max height

Returns:

A pixbuf, or null on error.


Namespace: Rsvg
Package: librsvg-2.0