[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:
filename | name of file to load |
bits | number of bits per sample |
width | width of image |
height | height of image |
alpha | true if alpha channel |
scale | true if use width and height as scale |
preserve | true if preserve aspect ratio |
xpm | if this key exists, then value is xpm data to create from |
data | if this key exists, then value is pixel data
The following is a list of valid keys if key data exists:
colorspace | colorspace, default GDK2.COLORSPACE_RGB, currently ignored |
rowstride | distance in bytes between row starts |
|
|
|
|