Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
GTK2
GTK2.GdkPixbuf

Method GTK2.GdkPixbuf()->create()


Method create

GDK2.Pixbuf GTK2.GdkPixbuf(string|mapping options)

Description

Create a GDK2.Pixbuf object. options is either a filename or a mapping of options. options can be:
filenamename of file to load
bitsnumber of bits per sample
widthwidth of image
heightheight of image
alphatrue if alpha channel
scaletrue if use width and height as scale
preservetrue if preserve aspect ratio
xpmif this key exists, then value is xpm data to create from
dataif this key exists, then value is pixel data The following is a list of valid keys if key data exists:
colorspacecolorspace, default GDK2.COLORSPACE_RGB, currently ignored
rowstridedistance in bytes between row starts