Constructor

PurpleImagenew_from_data

unstable since: 3.0

Declaration [src]

PurpleImage*
purple_image_new_from_data (
  gconstpointer data,
  gsize size
)

Description [src]

Creates a new image from raw data.

Available since: 3.0

Parameters

data

Type: gconstpointer

The raw image data.

The argument can be NULL.
The data is owned by the caller of the function.
size

Type: gsize

The size of the raw image data.

Return value

Type: PurpleImage

The new instance.

The caller of the function takes ownership of the data, and is responsible for freeing it.