Pixdata.fromPixbuf

Converts a GdkPixbuf to a GdkPixdata.

If use_rle is TRUE, the pixel data is run-length encoded into newly-allocated memory and a pointer to that memory is returned.

More...
class Pixdata
ubyte[]
fromPixbuf

Parameters

pixbuf Pixbuf

the data to fill pixdata with.

useRle bool

whether to use run-length encoding for the pixel data.

Return Value

Type: ubyte[]

If use_rle is TRUE, a pointer to the newly-allocated memory for the run-length encoded pixel data, otherwise NULL.

Detailed Description

Deprecated: Use #GResource instead.

Meta