GdkPixdata.Pixdata.from_pixbuf

### Method

# GdkPixdata.Pixdata.from_pixbuf

#### Declaration [src]

    gpointer
    gdk_pixdata_from_pixbuf (
      GdkPixdata* pixdata,
      const GdkPixbuf* pixbuf,
      gboolean use_rle
    )

#### Description [src]

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.

Deprecated since: | 2.32
Use `GResource` instead.

#### Parameters

`pixbuf` | `const GdkPixbuf*`
| the data to fill `pixdata` with.
| Ownership is not transferred to the callee
`use_rle` | `gboolean`
| whether to use run-length encoding for the pixel data.

#### Return value

Returns: An array of `guint8`
If `use_rle` is `TRUE`, a pointer to the newly-allocated memory for the run-length encoded pixel data, otherwise `NULL`.