Method GDK2.Pixbuf()->create()
- Method
create
GDK2.Pixbuf GDK2.Pixbuf(voidoptions)- Description
Create a GDK2.Pixbuf object.
- Parameter
options optionsis either a filename or a mapping of options.If it is a mapping, it may contain:
"filename":stringName of file to load.
"xpm":stringIf this key exists, then value is xpm data to create from.
"data":stringIf this key exists, then value is pixel data.
"bits":intNumber of bits per sample.
"width":intWidth of image.
"height":intHeight of image.
"alpha":intTrue if alpha channel.
"scale":intTrue if use width and height as scale.
"preserve":intTrue if preserve aspect ratio.
The following is additional keys may exist if the member
"data"exists:"colorspace":intColorspace, default
GDK2.COLORSPACE_RGB, currently ignored."rowstride":intDistance in bytes between row starts.