| 1 |
============ |
|---|
| 2 |
GtkImageView |
|---|
| 3 |
============ |
|---|
| 4 |
|
|---|
| 5 |
This is the README file for the GtkImageView widget. |
|---|
| 6 |
|
|---|
| 7 |
GtkImageView is a widget that provides a zoomable and panable view of |
|---|
| 8 |
a GdkPixbuf. It is intended to be usable in most types of image |
|---|
| 9 |
viewing applications. |
|---|
| 10 |
|
|---|
| 11 |
Announcement |
|---|
| 12 |
============ |
|---|
| 13 |
|
|---|
| 14 |
(To be posted at relevant mailing lists periodically) |
|---|
| 15 |
|
|---|
| 16 |
I'm pleased to finally announce GtkImageView 1.0. |
|---|
| 17 |
|
|---|
| 18 |
Description |
|---|
| 19 |
----------- |
|---|
| 20 |
GtkImageView is a simple image viewer widget for GTK. Similar to the |
|---|
| 21 |
image viewer panes in gThumb or Eye of Gnome. It makes writing image |
|---|
| 22 |
viewing and editing applications easy. Among its features are: |
|---|
| 23 |
|
|---|
| 24 |
* Mouse and keyboard zooming. |
|---|
| 25 |
* Scrolling and dragging. |
|---|
| 26 |
* Adjustable interpolation. |
|---|
| 27 |
* Fullscreen mode. |
|---|
| 28 |
|
|---|
| 29 |
Download |
|---|
| 30 |
-------- |
|---|
| 31 |
Check it out from Subversion:: |
|---|
| 32 |
|
|---|
| 33 |
svn co http://publicsvn.bjourne.webfactional.com/gtkimageview |
|---|
| 34 |
|
|---|
| 35 |
Examples |
|---|
| 36 |
-------- |
|---|
| 37 |
Here is the canonical example for using the widget:: |
|---|
| 38 |
|
|---|
| 39 |
#include <gtkimageview/gtkimagescrollwin.h> |
|---|
| 40 |
#include <gtkimageview/gtkimageview.h> |
|---|
| 41 |
... |
|---|
| 42 |
GtkWidget *view = gtk_image_view_new (); |
|---|
| 43 |
GtkWidget *scroll = gtk_image_scroll_win_new (GTK_IMAGE_VIEW (view)); |
|---|
| 44 |
|
|---|
| 45 |
/* Where "box" is a GtkBox already part of your layout. */ |
|---|
| 46 |
gtk_box_pack_start (GTK_BOX (box), scroll, TRUE, TRUE, 0); |
|---|
| 47 |
|
|---|
| 48 |
GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file ("someimage.png", NULL); |
|---|
| 49 |
gtk_image_view_set_pixbuf (GTK_IMAGE_VIEW (view), pixbuf); |
|---|
| 50 |
|
|---|
| 51 |
Future |
|---|
| 52 |
------ |
|---|
| 53 |
* Python bindings. |
|---|
| 54 |
* Perl bindings. |
|---|
| 55 |
* Gtk# bindings. |
|---|
| 56 |
|
|---|
| 57 |
Project website: http://trac.bjourne.webfactiona.com |
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|