PHP-GTK
Thursday, December 18, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkImage Constructor
GtkImage Constructornext

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

GtkImage Constructor

Creates a new GtkImage displaying the file filename. If the file isn't found or can't be loaded, the resulting GtkImage will display a "broken image" icon.

If the file contains an animation, the image will contain an animation.

If you need to detect failures to load the file, use GdkPixbuf::new_from_file() to load the file yourself, then create the GtkImage from the pixbuf. (Or for animations, use GdkPixbufAnimation::new_from_file.

The storage type (get_storage_type() ) of the returned image is not defined, it will be whatever is appropriate for displaying the file.

This method must be called statically.


User Contributed Notes
gtk.gtkimage.constructor.new_from_file.php
add a note about notes
There are no user contributed notes for this page.


previousGtkImage Constructor
GtkImage 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:58 2013 CEST