Pixbuf.this

Create a GdkPixbuf from a flat representation that is suitable for storing as inline data in a program. This is useful if you want to ship a program with images, but don't want to depend on any external files. gdk-pixbuf ships with a program called gdk-pixbuf-csource which allows for conversion of GdkPixbufs into such a inline representation. In almost all cases, you should pass the --raw flag to

Parameters

data ubyte[]

Byte data containing a serialized GdkPixdata structure

copyPixels int

Whether to copy the pixel data, or use direct pointers data for the resulting pixbuf

Throws

GException on failure. ConstructionException GTK+ fails to create the object.

Meta