Tiny Core Linux
Tiny Core Base => TCB Tips & Tricks => Topic started by: malikawan on January 06, 2014, 03:11:59 AM
-
hi to all
I want to take screen shot of a specific area using script.any idea plz
Malik Awan
“ Computers are good at following instructions, but not at reading your mind. ”
-
Have you searched this forum?
There have been several scripts and 1-liner commands to take screenshots of single windows posted, though if you need an area regardless of windows that might be a bit more tricky.
-
Hi malikawan
This thread may be of use to you:
http://forum.tinycorelinux.net/index.php/topic,15086.msg86458.html#msg86458
-
Hi malikawan
This thread may be of use to you:
http://forum.tinycorelinux.net/index.php/topic,15086.msg86458.html#msg86458
Thanx for reply Rich but i need a specific area to capture and also i need command line because i want to use in my java application for capturing a specific area of a window when user click on specific button plz if any one help.
Malik Awan
“ Computers are good at following instructions, but not at reading your mind. ”
-
Any idea plz i need to use in my java code
Malik Awan
-
Hi malikawan
You could look into netpbm or ImageMagick.
-
Thanx rich for reply
-
i need a specific area to capture and also i need command line because i want to use in my java application for capturing a specific area of a window when user click on specific button plz if any one help.
How are
A. command line
B. java application
C. click on specific button
related between each other?
???
-
i need a specific area to capture and also i need command line because i want to use in my java application for capturing a specific area of a window when user click on specific button plz if any one help.
How are
A. command line
B. java application
C. click on specific button
related between each other?
???
tinypoodle thanx for reply i want to create a script in tiny core. Which give me the specific area screen shot then i run this script in my java program through a button when user click that button the sh script run.
Malik Awan
-
Last on its own seems to make sense, but then I couldn't understand at all what role exactly would
and also i need command line
play with that...
???
Could you please elaborate more in detail about?
-
i have a java application and in this application i use specific area snap shot which required by user that when gui open the user need some snap shot of specific area so that is why i need it
-
Based on that I assume command line is not of any relevance then.
Do I understand right that you want an offset relative to the the screen area covered by a specified window, rather than an offset relative to screen?
-
Based on that I assume command line is not of any relevance then.
Do I understand right that you want an offset relative to the the screen area covered by a specified window, rather than an offset relative to screen?
tinypoodle thanx for reply yes but my java program have diveded to three window left, right and centermain and i want to capture only centremain window area.
-
http://recordmydesktop.sourceforge.net/manpage.php
is explicit and descriptive in detail about capturing relative to a specified window area.
I wouldn't know though if you could record a single frame with recordmydesktop, you'd have to research further on that.
http://ffmpeg.mplayerhq.hu/ffmpeg.html#X11-grabbing
can most likely capture a single frame, but I wouldn't know if it could capture relative to a specified window area.
Also you can look into documentation of 'import' from ImageMagick - as already hinted by Rich in Reply #5, particularly the "-window id" and the various geometry options.
-
Hi tinypoodle
particularly the "-window id" and the various geometry options.
If he has the window id he can adapt the windowshot script and avoid installing ImageMagic.
-
imlib2_grab does not appear to have an offset option.