PHP-GTK
Sunday, October 26, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGdkPixbuf
GdkPixbuf Constructornext

Last updated: Sun, 12 May 2013
view this page in English

GdkPixbuf Constructor

GdkPixbuf (GdkColorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height);

Creates an empty image with the desired size.

The colorspace parameter is always Gdk::COLORSPACE_RGB as Gtk itself doesn't support any other. has_alpha defines it the image has opacity (transparency) information for each pixel.

bits_per_sample is the number of bits reserved for each color sample (red/green/blue/alpha). This is normally 8.

Most times you don't want to create an image yourself but use an one existing in a file - use GdkPixbuf::new_from_file then.


User Contributed Notes
gdk.gdkpixbuf.constructor.php
add a note about notes
There are no user contributed notes for this page.


previousGdkPixbuf
GdkPixbuf Constructornext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:55 2013 CEST