Re: Image grab in Python

2008-05-04 Thread Valerio Valerio
2008/5/4 David <[EMAIL PROTECTED]>: > > What I want is display a window with a image, the user select a region > of > > the image, and the region value is passed to my program, my program > slice > > the image region, and analyze it. > > > > If it's your apps own window, then getting a rectangle s

Re: Image grab in Python

2008-05-04 Thread David
> What I want is display a window with a image, the user select a region of > the image, and the region value is passed to my program, my program slice > the image region, and analyze it. > If it's your apps own window, then getting a rectangle selected by the user is simple. 1) Make skeleton x/g

Re: Image grab in Python

2008-05-04 Thread Valerio Valerio
Hi, 2008/5/4 David <[EMAIL PROTECTED]>: > On Sun, May 4, 2008 at 5:28 PM, Valerio Valerio <[EMAIL PROTECTED]> wrote: > > I can grab the image, I need a way of grab the region size with the > mouse, > > a easy way of the user select a region of the image to analyze, > something > > like the "Rec

Re: Image grab in Python

2008-05-04 Thread David
> > Another way would be to listen to all events sent through X, and act > based on the mouse events. VNC does something similar. > See the 'record_demo.py' example that comes with python-xlib. -- http://mail.python.org/mailman/listinfo/python-list

Re: Image grab in Python

2008-05-04 Thread David
On Sun, May 4, 2008 at 5:28 PM, Valerio Valerio <[EMAIL PROTECTED]> wrote: > I can grab the image, I need a way of grab the region size with the mouse, > a easy way of the user select a region of the image to analyze, something > like the "Rectangle selection tool" of gimp. > I assume what you w

Re: Image grab in Python

2008-05-04 Thread Valerio Valerio
I can grab the image, I need a way of grab the region size with the mouse, a easy way of the user select a region of the image to analyze, something like the "Rectangle selection tool" of gimp. Regards, -- Valério Valério http://www.valeriovalerio.org 2008/5/4 David <[EMAIL PROTECTED]>: > O

Re: Image grab in Python

2008-05-04 Thread David
On Sun, May 4, 2008 at 4:25 PM, Valerio Valerio <[EMAIL PROTECTED]> wrote: > Hi, > > anyone know a Python library to grab the size of a selected image region > (the selection will be made with the mouse), that work in Linux ? You might be able to use this tool: http://freshmeat.net/projects/gtksh

Image grab in Python

2008-05-04 Thread Valerio Valerio
Hi, anyone know a Python library to grab the size of a selected image region (the selection will be made with the mouse), that work in Linux ? I found a module to do that in the PIL library but only work in Windows - http://www.pythonware.com/library/pil/handbook/imagegrab.htm Thanks in advance.