Re: Size of a GtkImage

From: Date: Fri, 10 Feb 2006 14:17:51 +0000
Subject: Re: Size of a GtkImage
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6707@lists.php.net to get a copy of this message
Breizh Micro Services wrote:
Maybe it is an idiot question, but I do not know how to make a zoom on a GtkImage? I wish to display an image and with two buttons, zoom in ou out the image... Is it possible ?
I've never tried this but here is how I would go about it. Create a GdkPixbuf and scale the image down for your zoomed out version. Use the regular version for the zoomed in image. Otherwise you will have some image quality issues. http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-scaling.html#gdk-pixbuf-scale -- Scott Mattocks http://www.crisscott.com

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