GalagoImage

GalagoImage — Image data.

Functions

Types and Values

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.

Functions

galago_image_new_from_file ()

GalagoImage *
galago_image_new_from_file (const gchar *filename);

Creates a new image from a filename.

Parameters

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.

Parameters

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.

Parameters

image

The image.

 

ret_data

The returned image data.

 

ret_len

The returned image data length.

 

Types and Values

struct GalagoImage

struct 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 "org.freedesktop.Galago.Image"

The D-BUS interface that GalagoImage maps to.