from_pixdata


Description:


[ Version ( deprecated = true , deprecated_since = "2.32" ) ]
public static Pixbuf from_pixdata (Pixdata pixdata, bool copy_pixels = true) throws Error

Warning: from_pixdata is deprecated since 2.32.

Converts a `GdkPixdata` to a `GdkPixbuf`.

Note:

Use `GResource` instead.

If `copy_pixels` is `TRUE` or if the pixel data is run-length-encoded, the pixel data is copied into newly-allocated memory; otherwise it is reused.

Parameters:

pixdata

a Pixdata to convert into a `GdkPixbuf`.

copy_pixels

whether to copy raw pixel data; run-length encoded pixel data is always copied.

Returns:

a new pixbuf