pixbuf_from_file_at_zoom_with_max


Description:


[ Version ( deprecated = true ) ]
public Pixbuf? pixbuf_from_file_at_zoom_with_max (string filename, double x_zoom, double y_zoom, int max_width, int max_height) throws Error

Warning: pixbuf_from_file_at_zoom_with_max 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 by the file by a factor of x_zoom and y_zoom. If the resulting pixbuf would be larger than max_width/max_heigh it is uniformly scaled down to fit in that rectangle. 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

x_zoom

The horizontal zoom factor

y_zoom

The vertical zoom factor

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



2022 vala-language.org