## GalagoImage GalagoImage — Image data. |

## Synopsis

                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);

## Object Hierarchy

      GObject
       +----GalagoObject
             +----GalagoImage

## Description

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.

## Details

### GalagoImage

    typedef struct _GalagoImage GalagoImage;

This is an opaque structure representing an image. This should not be used directly. Use the accessor functions below.

### GALAGO_DBUS_IMAGE_INTERFACE

    #define     GALAGO_DBUS_IMAGE_INTERFACE

The D-BUS interface that GalagoImage maps to.

### galago_image_new_from_file ()

    GalagoImage* galago_image_new_from_file     (const gchar *filename);

Creates a new image from a filename.

`filename` : | The image filename.
Returns : | The image.

### galago_image_new_from_data ()

    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.

### galago_image_get_data ()

    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.