On Thu, 10 May 2001, guy keren wrote:
> 2. regarding my mention of problems performing window image capture, here
> is what i wanted to do, and i wonder if anyone has a _good_ solution
> for the problem.
>
> i raun a small gtk program that creates a window. i want to capture
> this window, including the window manager decorations around it
> (title-bar, borders, etc.) - without these parts, the window looks
> quite awkward. i also need the output format to be one that can be
> translated into 'gif' or 'eps', for incorporation in magicpoint.
>
> i tried using a set of image capture programs. starting with xwd - that
> comes with X11, but refused to dump the window manager decorations
> part, i also tried xwpick and xgrabsc, and maybe i also searched for
> one or two other programs. out of those, xgrabsc was the one that
> enabled me to capture the window _with_ the window manager's
> decorations. the problem wasthat this program cannot work with more
> then 8 bit planes (i.e. 256 colors), so i had to run X with 256 colors
> support. ofcourse, since magicpoint tried allocating more colors, i
> couldn't run it on this 256 color X, so i had to run another X server
> with support for more colors, to check the output inside magicpoint.
>
> anyone has a god solution to this problem? i'e' a window grabber that
> will grab exactly what i tell it to, and is not limited to 256 color
> displays?
A quick solution would be to grab the whole screen, and then trim it later
to just the window you're interested in.
I normally use the gimp for that (because it worked nice for me in the
first time, and I never bothered much checking other parograms)
--
Tzafrir Cohen
mailto:[EMAIL PROTECTED]
http://www.technion.ac.il/~tzafrir