[magick-users] is the "import" program available through the Magick++ library?
Giovanni Gherdovich
g.gherdovich at gmail.com
Mon Jun 22 17:25:05 PDT 2009
Hi Anthony,
I'm speechless; your answer opened me a new world!
2009/6/23 Anthony Thyssen <A.Thyssen at griffith.edu.au>:
>
> WARNING. if you grab a window, and another window is over the top of it
> the image contents will either contain the overlaping window, or a
> blank undefined (undrawn) area. So make sure when grabbing windows
> that window is ON TOP.
Yeah, in fact my first capture was... a black rectangle!
after a few experiment I realized why :-)
>
> Xterms, and many other terminal windows report the window ID in the
> environment variable "WINDOWID" as a decimal number. So scripts can
> easily grab the contents of the terminal window from which it was run.
mmh.. good to know.
>
> For example try this, whcih asks ImageMagick to display the contents
> of the terminal you ran the command from...
> display x:$WINDOWID
this was fun...
> child=`xwininfo -children -id $WINDOWID | sed -n 's/^ *\(0x[^ ]*\).*/\1/p'`
> Now you can draw directly into that window
> convert rose: rose.png
> xloadimage rose:.png -windowid $child
but this was even more fun!
Thank you again for your reply.
Cheers,
Giovanni
More information about the Magick-users
mailing list