gnome-vfs-util

gnome-vfs-util

Functions

Includes

#include <libgnomeui/libgnomeui.h>

Description

Functions

GnomeGdkPixbufLoadCallback ()

void
(*GnomeGdkPixbufLoadCallback) (GnomeGdkPixbufAsyncHandle *handle,
                               GnomeVFSResult error,
                               GdkPixbuf *pixbuf,
                               gpointer cb_data);

GnomeGdkPixbufDoneCallback ()

void
(*GnomeGdkPixbufDoneCallback) (GnomeGdkPixbufAsyncHandle *handle,
                               gpointer cb_data);

gnome_gdk_pixbuf_new_from_uri ()

GdkPixbuf *
gnome_gdk_pixbuf_new_from_uri (const char *uri);

Loads a GdkPixbuf from the image file uri points to, scaling it to the desired size. If you pass -1 for width or height then the value specified in the file will be used.

When preserving aspect ratio, if both height and width are set the size is picked such that the scaled image fits in a width * height rectangle.

Parameters

uri

the uri of an image

 

width

The width the image should have or -1 to not constrain the width

 

height

The height the image should have or -1 to not constrain the height

 

preserve_aspect_ratio

TRUE to preserve the image's aspect ratio

 

Returns

The loaded pixbuf, or NULL on error

Since: 2.14


gnome_gdk_pixbuf_new_from_uri_async ()

GnomeGdkPixbufAsyncHandle *
gnome_gdk_pixbuf_new_from_uri_async (const char *uri,
                                     GnomeGdkPixbufLoadCallback load_callback,
                                     GnomeGdkPixbufDoneCallback done_callback,
                                     gpointer callback_data);

gnome_gdk_pixbuf_new_from_uri_cancel ()

void
gnome_gdk_pixbuf_new_from_uri_cancel (GnomeGdkPixbufAsyncHandle *handle);

Types and Values