| libgalago Reference Manual | ||||
|---|---|---|---|---|
GalagoImage;
#define GALAGO_DBUS_IMAGE_INTERFACE
GalagoImage* galago_image_new_from_file (const gchar *filename);
GalagoImage* galago_image_new_from_data (const guchar *data,
gsize len);
void galago_image_get_data (const GalagoImage *image,
guchar **ret_data,
gsize *ret_len);
GalagoImage represents image data, sort of like GdkPixbuf. However, this only supports pointing to a file on disk, or the contents of the file itself. This is used for photos and avatars.
typedef struct _GalagoImage GalagoImage;
This is an opaque structure representing an image. This should not be used directly. Use the accessor functions below.
#define GALAGO_DBUS_IMAGE_INTERFACE
The D-BUS interface that GalagoImage maps to.
GalagoImage* galago_image_new_from_file (const gchar *filename);
Creates a new image from a filename.
filename : |
The image filename. |
| Returns : | The image. |
GalagoImage* galago_image_new_from_data (const guchar *data, gsize len);
Creates a new image from in-memory image data.
data : |
The image data. |
len : |
The image data length. |
| Returns : | The image. |
void galago_image_get_data (const GalagoImage *image, guchar **ret_data, gsize *ret_len);
This function returns the image's data and the length of the data.
image : |
The image. |
ret_data : |
The returned image data. |
ret_len : |
The returned image data length. |