[magick-users] want fetch screen geometry

Anthony Thyssen anthony at griffith.edu.au
Sun Sep 23 22:51:58 PDT 2007


eexpress on  wrote...
| i want some software can output geometry of the zoon i select on screen.  
| just like import can do. so i can use the geometry to control another  
| software.
| i read import.c, but can not find which part can do it.
| 
| seems it not associate with imagemagick. but i want if can get some advise.
| 
import is the imagemagick command,  but the "x:"  image operator can also
do that too, with options for full screen, or a specific window.

For example to grab the 'MailEd window I can use...

   convert x:'MailEd'  window.jpg

I can even do

    convert x:'MailEd' x:

to grap the window, then display it in another window.

to get the whole screen use...

   convert x:'root'   full_screen.jpg

Or to crop to a specific part use...

   convert  x:'root[300x400+879+122]'  part_screen.jpg

This only works with a X window display available of course.


  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 -----------------------------------------------------------------------------
      `` Watch Out!  He's got a dragon! ''
                               -- Robert Asprin - "Another Fine Myth"
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


More information about the Magick-users mailing list