Method

WebKitImageas_rgba_bytes

unstable since: 2.52

Declaration [src]

GBytes*
webkit_image_as_rgba_bytes (
  WebKitImage* image
)

Description [src]

Get the image pixel data as an array of bytes.

The pixel format for the returned byte buffer is 32-bit per pixel with 8-bit premultiplied alpha, in the preferred byte order for the architecture (typically ABGR8888 on little-endian hosts, and RGBA8888 on big-endian ones).

Available since: 2.52

Return value

Type: GBytes

A GBytes.

The returned data is owned by the instance.