[ANN] GtkImageView 1.5.0 and PyGtkImageView 1.0.0 -- Image viewerwidget for GTK

  • Thread starter =?ISO-8859-1?Q?BJ=F6rn_Lindqvist?=
  • Start date
?

=?ISO-8859-1?Q?BJ=F6rn_Lindqvist?=

I'm pleased to finally announce GtkImageView 1.5.0. I'm even more
pleased to ALSO announce PyGtkImageView 1.0.0:

Description
-----------
GtkImageView is a simple image viewer widget for GTK+. Similar to the
image viewer panes in gThumb or Eye of Gnome. It makes writing image
viewing and editing applications easy. Among its features are:

* Mouse and keyboard zooming.
* Scrolling and dragging.
* Adjustable interpolation.
* Fullscreen mode.
* GIF animation support.
* Ability to make selections.
* Extensible using a tool system.

PyGtkImageView is the Python bindings for the same thing.

GtkImageView Download
---------------------
Subversion: svn co http://publicsvn.bjourne.webfactional.com/gtkimageview
Tarball: http://trac.bjourne.webfactional.com/attachment/wiki/WikiStart/gtkimageview-1.5.0.tar.gz
API doc: http://trac.bjourne.webfactional.com/chrome/common/gtkimageview-docs/

PyGtkImageView Download
-----------------------
Subversion: svn co http://publicsvn.bjourne.webfactional.com/pygtkimageview
Tarball: http://trac.bjourne.webfactional.com/attachment/wiki/WikiStart/pygtkimageview-1.0.0.tar.gz
API doc: http://trac.bjourne.webfactional.com/chrome/common/pygtkimageview-docs/
PDF: http://trac.bjourne.webfactional.com/attachment/wiki/WikiStart/pygtkimageview-1.0.0-api.pdf

Project website: http://trac.bjourne.webfactional.com

Examples
--------
Here is the canonical example for using the widget::

#include <gtkimageview/gtkimagescrollwin.h>
#include <gtkimageview/gtkimageview.h>
...
GtkWidget *view = gtk_image_view_new ();
GtkWidget *scroll = gtk_image_scroll_win_new (GTK_IMAGE_VIEW (view));

/* Where "box" is a GtkBox already part of your layout. */
gtk_box_pack_start (GTK_BOX (box), scroll, TRUE, TRUE, 0);

GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file ("someimage.png", NULL);
gtk_image_view_set_pixbuf (GTK_IMAGE_VIEW (view), pixbuf, TRUE);

Same thing using PyGtkImageView::

import gtk
import gtk.gdk
import gtkimageview

view = gtkimageview.ImageView()
scroll = gtkimageview.ImageScrollWin(view)

# Where "box" is a gtk.Box already part of your layout.
box.pack_start(scroll)
pixbuf = gtk.gdk.pixbuf_new_from_file("someimage.png")
view.set_pixbuf(pixbuf)

Future
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,184
Latest member
ZNOChrista

Latest Threads

Top