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.

class Pixdata
void*
fromPixbuf

Parameters

pixbuf Pixbuf

the data to fill pixdata with.

useRle int

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

Return Value

Type: void*

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

Meta