Page 1 of 1

How to take screenshot of specific window in linux?

Posted: 2010-06-17T12:26:39-07:00
by rwikee
Please correct my syntax

1. For taking screenshot of entire window, am using
status=MagickReadImage(magick_wand,"x:");

2. For taking snap of a particular window I used
status=MagickReadImage(magick_wand,"x:$WINDOWID");

Both are reporting syntax errors, but if I pass file names as second parameters then it is compiling without any failure. Please correct me. Thanks.........

Re: How to take screenshot of specific window in linux?

Posted: 2010-06-17T13:28:20-07:00
by magick
We're using ImageMagick 6.6.2-5 and this API call:
  • status=MagickReadImage(magick_wand,"x:0x2800036");
It returns the screen shot of that particular window without complaint.

Re: How to take screenshot of specific window in linux?

Posted: 2010-06-22T00:05:48-07:00
by rwikee
Thanks, i used x:root. then croped the desired portion.