LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-13-2003, 08:10 AM   #1
karthikeyan
LQ Newbie
 
Registered: Feb 2003
Posts: 7

Rep: Reputation: 0
Post how to snapshot xwindows to image files programtically


hello all,

I am trying to snapshot the xwindows screen by writing a program in 'C' language.

I don't know how to proceed....
Is there any system call to capture the screen to an image
 
Old 02-13-2003, 08:30 AM   #2
acid2000
Member
 
Registered: Nov 2001
Location: Exeter, UK
Distribution: Gentoo 1.4
Posts: 243

Rep: Reputation: 30
There was a program bundled with X ages ago that took screen caps. I guess it was written in C or C++. I just can't remember the name.
 
Old 02-14-2003, 07:48 PM   #3
Scrapz
LQ Newbie
 
Registered: Feb 2003
Location: Brisbane, AU
Distribution: Gentoo
Posts: 20

Rep: Reputation: 0
You could make a system call to use the 'import' command (you need to have ImageMagick installed for this) and just format the command: import -window root name_of_image.png - the '-window root' bit means that it takes a screenshot of your whole desktop, not just a window. You can also make it save in different file formats by changing the extension, it'll do the rest.

TTFN,
Scrapz
 
Old 02-19-2003, 03:29 AM   #4
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
xwd might be it..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nero Image Files jinksys Programming 2 03-09-2004 04:30 AM
Best image viewer for very large image files? andvaranaut Linux - Software 1 02-21-2004 10:01 AM
image files / cd burn LeBurg Linux - Software 2 02-02-2004 10:10 AM
backup program for backing up only modified files | 'snapshot' ibm5_25 Linux - Software 2 01-10-2004 12:28 AM
Kodak image files kurnow Linux - Software 1 01-15-2003 03:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration