1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
============
GtkImageView
============
Copyright © 2007-2008 Björn Lindqvist <bjourne@gmail.com>
This is the README file for the GtkImageView widget.
GtkImageView is a widget that provides a zoomable and panable view of
a GdkPixbuf. It is intended to be usable in most types of image
viewing applications.
Compilation
===========
The usual business:
$ ./configure --prefix=/some/prefix
$ make
$ make install
You can also use the --enable-gtk-doc configure argument to enable
building of API documentation.
Alternatively, GtkImageView can be built with waf:
$ ./waf configure
$ ./waf build
$ ./waf install
Because GtkImageView uses c99, you must use a version of gcc newer
than 2.96. The gnome-common module must also be installed.
Todo
====
* Maybe make rotations work correctly.
* Implement shifted selection rectangle moving and resizing.
Announcement
============
(To be posted to the following mailing lists periodically:
* gnome-announce-list@gnome.org
* gnome-list@gnome.org
Subject: [ANN] GtkImageView 1.6.4 - Image viewer widget for GTK+
)
I'm pleased to finally announce GtkImageView 1.6.4!
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.
Bindings exists for Perl and Python.
Download
--------
Check it out from Subversion:
svn co http://publicsvn.bjourne.webfactional.com/gtkimageview
Or download the latest release tarball:
http://trac.bjourne.webfactional.com/chrome/common/releases/gtkimageview-1.6.4.tar.gz
API documentation can be found online:
http://trac.bjourne.webfactional.com/chrome/common/gtkimageview-docs/
Or by browsing to the ./docs/reference/html/index.html file.
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);
Future
------
* Gtk# bindings.
* Haskell bindings.
|