libgtkimreg(3)

libgtkimreg3

Gtk+ widget to select region of a (gdkimlib) image

Usage

GtkType gtk_imreg_get_type (void);

gint gtk_imreg_get_left (GtkImReg * imreg);

gint gtk_imreg_get_top (GtkImReg * imreg);

gint gtk_imreg_get_right (GtkImReg * imreg);

gint gtk_imreg_get_bottom (GtkImReg * imreg);

Overview

Select an area in an image given as GdkImlib structure and obtain the coordinates of this image. The user_area can be NULL or an user supplied widget to add certain functionality.
The gtk_imreg_get_ functions are useful in an OK-callback to obtain the chosen coordinates. The gtk_imreg_set_ functions enable the user to preset a region selection.

Examples

See testimreg.c which is shipped with the sources. In a Debian system you can find it under
/usr/doc/libgtkimreg-dev/example/testimreg
next to an appropriate Makefile and an image example.

Requires

GTK+ 1.2, GdkImlib 1.9.2 or higher

Author

Andreas Tille <[email protected]>
http://www.physik.uni-halle.de/~e2od5

Address at home:

Gartenstraße 8
D-38855 Wernigerode
GERMANY

Address at university:

Martin-Luther-Universität Halle/Wittenberg
Fachbereich Physik
Experimentalphysik II
Friedeman-Bach-Platz 6
D-06108 Halle / Saale
GERMANY

From libgtkimreg-dev 0.1.0-2 in Debian 2.2 (Potato). Parsed by carta from the page's man source.