need some help... about XWD

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Post Reply
asimz77
Cadet
Posts: 1
Joined: Wed Jan 29, 2003 9:59 am
Location: Islamabad

need some help... about XWD

Post by asimz77 »

hello All,

i hope all of you must be fine.

I need some help to capture the screen on linux OS in .xwd form. I know that XWD command exist in Linux OS, but i need its implementation. I had developed a solaris based screen capture utility for 24bit depth for XRunner (a Mercury interactive product). Initialy i used XGetImage API to capture the screen, but in case of overlaps of different visuals/depth windows there was some distortion in results, so i used XReadScreen() API, but that API was specific to solaris, this API takes screen shots in 24bit depth, and in case of multiple depth/visuals overlaps it takes screen shot in highest depth available, just as XWD command do in unix.

now i have to implement same thing on Linux, i cant port the solaris code beacuse XReadScreen() is specific to solaris. Can anyone tell me any alternate API in Linux? XGetImage is fine in case of same visuals overlap, but for different visuals overlap it is not desirable. If you know any API like XReadScreen then please let me know, or any help in this context?

Thanx.

Asim Ajmal
Software Developer
LMK Resources,
A Landmark Graphics Affiliated Company
E-mail: Aajmal@lmkr.com
Phone: +92 51 111 101 101 Ext. 751
Fax: +92 51 2879 854 +92 51 2879 855
Cell: +92 300 8500329
http://www.lmkr.com
kadnan
Battalion Quarter Master Havaldaar
Posts: 208
Joined: Wed Aug 07, 2002 8:00 pm
Location: Karachi,Pakistan
Contact:

Post by kadnan »

hello Asim

ii would suggest you to join our mailing list+ try to find some help from any opensourcr server (irc.freenode.net),you may join this server on irc and may ask help on #c++ channel
-adnan
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Re: need some help... about XWD

Post by lambda »

the linux xwd is just the xfree86 xwd. you'll find the source code here:
http://cvsweb.xfree86.org/cvsweb/xc/programs/xwd/ and http://cvsweb.xfree86.org/cvsweb/xc/programs/xwud/.
Post Reply