pixbufFromFileAtZoomWithMax

Loads a new gdkpixbuf.pixbuf.Pixbuf from filename and returns it. 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, error is set and NULL is returned.

More...
pixbufFromFileAtZoomWithMax
(
string filename
,
double xZoom
,
double yZoom
,,)

Parameters

filename string

A file name

xZoom double

The horizontal zoom factor

yZoom double

The vertical zoom factor

maxWidth int

The requested max width

maxHeight int

The requested max height

Return Value

Type: gdkpixbuf.pixbuf.Pixbuf

A pixbuf, or null on error.

Detailed Description