Class

PurpleImage

unstable since: 3.0

Description [src]

final class Purple.Image : GObject.Object
{
  /* No available fields */
}

A container for raw image data. It doesn’t manipulate the image data, it just stores it in its binary format - png, jpeg etc.

Available since: 3.0

Ancestors

Constructors

purple_image_new_from_bytes

Creates an image from bytes.

unstable since: 3.0

purple_image_new_from_data

Creates a new image from raw data.

unstable since: 3.0

purple_image_new_from_filename

Creates an image from a file.

unstable since: 3.0

purple_image_new_from_resource

Creates a new image from a resource.

unstable since: 3.0

Instance methods

purple_image_get_contents

Gets the contents of the image.

unstable since: 3.0

purple_image_get_data

Gets the data of the image.

unstable since: 3.0

purple_image_get_filename

Gets the filename to the image.

unstable since: 3.0

purple_image_save

Saves an image to the disk.

unstable since: 3.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Purple.Image:contents

The contents of the image.

unstable since: 3.0

Purple.Image:data

The raw image data.

unstable since: 3.0

Purple.Image:filename

The filename for the image if one was provided.

unstable since: 3.0

Purple.Image:size

The size of the image in bytes.

unstable since: 3.0

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct PurpleImageClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.