Hi,
Is there a way using REV commands to capture a specific screen area (or designated window) and put it into an image?
Thanks,
screen captures
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 66
- Joined: Sun Apr 15, 2007 2:54 pm
- Location: Albuquerque, NM USA
screen captures
Ken
-
- Livecode Opensource Backer
- Posts: 66
- Joined: Sun Apr 15, 2007 2:54 pm
- Location: Albuquerque, NM USA
location of screen snapshot rectangle
Hi,
Using the "export snapshot" command, an area of the screen is sucessfully exported to an image file.
Now, is there a way to capture the rectangle x & y values of the capture area so that the same area may be captured at timed intervals?
I've tried the clickLoc and mouseLoc commands, but don't seem to actually "catch" the precise area that was defined in the "export snapshot" process.
Thanks in advance for any pointers.
Using the "export snapshot" command, an area of the screen is sucessfully exported to an image file.
Now, is there a way to capture the rectangle x & y values of the capture area so that the same area may be captured at timed intervals?
I've tried the clickLoc and mouseLoc commands, but don't seem to actually "catch" the precise area that was defined in the "export snapshot" process.
Thanks in advance for any pointers.
Ken
Hi ken,
What exactly have you tried so far?
You can import/export a snapshot from the rectangle (or a part of it) of any object. It is all explained in the docs. For example:
export snapshot from rect 100,100,200,200 of this card to myVar as PNG
If you need the user to select a part of the card, you should give sufficient visual feedback. For example, set the topleft of an object to the mouseLoc on mouseDown, followed by a repeat loop which sets the bottomright of the object to the mouseLoc. When the mouse is up, put the rect of the object into a variable and use that to export from.
Best,
Mark
What exactly have you tried so far?
You can import/export a snapshot from the rectangle (or a part of it) of any object. It is all explained in the docs. For example:
export snapshot from rect 100,100,200,200 of this card to myVar as PNG
If you need the user to select a part of the card, you should give sufficient visual feedback. For example, set the topleft of an object to the mouseLoc on mouseDown, followed by a repeat loop which sets the bottomright of the object to the mouseLoc. When the mouse is up, put the rect of the object into a variable and use that to export from.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode