Class GDK2.Pixbuf
- Description
Properties: int bits-per-sample int colorspace (GdkColorspace) int has-alpha int height int n-channels object pixels int rowstride int width
- Inherit
Object
inherit G.Object : Object
- Method
create
GDK2.Pixbuf GDK2.Pixbuf(voidoptions)- Description
Create a GDK2.Pixbuf object.
- Parameter
options options is 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.