Constructor
PurpleImagenew_from_bytes
unstable since: 3.0
Declaration [src]
PurpleImage*
purple_image_new_from_bytes (
GBytes* bytes
)
Parameters
bytes
-
Type:
GBytes
A
GBytes
containing the raw image data.The data is owned by the caller of the function.
Return value
Type: PurpleImage
The new PurpleImage
.
The caller of the function takes ownership of the data, and is responsible for freeing it. |