Re: Displaying jpg and gif graphics

From: Date: Fri, 09 Jan 2004 12:45:09 +0000
Subject: Re: Displaying jpg and gif graphics
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4346@lists.php.net to get a copy of this message
> Can anyone point me in the direction where I can find out how to display > graphic in a window. I'm actually using PHP-GTK with GDK compiled in. I > noticed that the GTK Graphic is not supported by the php-gtk, only the > GdkPixelMap functions. For PHP-GTK questions you should post on <php-gtk-general@lists.php.net> rather than <gtk-list@gnome.org> If you have compile PHP-GTK with --enable-gdkpixbuf you can use the gdkPixbuf widget (but notice that this one is not available if you are a windows user) Have a look at this sample: http://grincheux.codelutin.org/~monnier/pim/g/sample/ You can switch on the pixbuf or the pixmap functions, yo use a pixbuf or a pixmap rendering: function render_drawable($area) { //render_pixbuf($area); render_pixmap($area); } function handle2drawable() { //handle2pixbuf(); handle2pixmap(); } Cheers

« previous php.gtk.general (#4346) next »