Fast method for shaped screenshot?
Posted: Sat Feb 06, 2016 1:55 am
Hi multimedia specialists,
meanwhile I found a solution for non-rectangular window-shaped screenshots.
Resizing 'on-the-fly' is no problem with non-rectangular window shapes, it's even fast enough on a Raspi.
What's making some speed-problems is to do the "shaped" screenshot.
See attachment and the screenshots here (Shaped RaspiStack #2)
http://forums.livecode.com/viewtopic.ph ... 40#p137640
[Runs on Mac/Win/Linux/RaspiB/Raspi2 (I didn't test mobiles for now).]
It needs at about 800 millisecs on a medium fast machine (2.5 GHz)
for that [1800 ms on Raspi 2] and these 5 steps (starting from step0):
0. Start status: The frame is placed (image I below).
1. Make a rectangular screenshot A.
2. Set windowshape to 0, frame to opaque.
3. Make a screenshot B of the opaque frame.
4. Save the shot A with mask from B as "framed shot" (image II below).
5. Set windowshape back to the original frame (image II below).
[Attached images are scaled to width 390 to fit the forum needs.]
A simple (unframed) rectangular screenshot needs in total < 200 milliseconds
only on a medium fast machine [< 500 ms on Raspi 2] and one single step.
Is there a simpler/faster way to do such a framed screenshot?
My solution looks rather complicated but I couldn't find another way.
In the stack cited above are some actions that could also be "surrounded" by
lock screen; lock messages ... unlock screen; unlock messages.
These works on some (fast) machines, on others not.
So, with first priority, I'm looking for a better solution that works (as mine) on Mac/Win/Linux+Raspi.
Hermann
[Edit. Added attachments]
meanwhile I found a solution for non-rectangular window-shaped screenshots.
Resizing 'on-the-fly' is no problem with non-rectangular window shapes, it's even fast enough on a Raspi.
What's making some speed-problems is to do the "shaped" screenshot.
See attachment and the screenshots here (Shaped RaspiStack #2)
http://forums.livecode.com/viewtopic.ph ... 40#p137640
[Runs on Mac/Win/Linux/RaspiB/Raspi2 (I didn't test mobiles for now).]
It needs at about 800 millisecs on a medium fast machine (2.5 GHz)
for that [1800 ms on Raspi 2] and these 5 steps (starting from step0):
0. Start status: The frame is placed (image I below).
1. Make a rectangular screenshot A.
2. Set windowshape to 0, frame to opaque.
3. Make a screenshot B of the opaque frame.
4. Save the shot A with mask from B as "framed shot" (image II below).
5. Set windowshape back to the original frame (image II below).
[Attached images are scaled to width 390 to fit the forum needs.]
A simple (unframed) rectangular screenshot needs in total < 200 milliseconds
only on a medium fast machine [< 500 ms on Raspi 2] and one single step.
Is there a simpler/faster way to do such a framed screenshot?
My solution looks rather complicated but I couldn't find another way.
In the stack cited above are some actions that could also be "surrounded" by
lock screen; lock messages ... unlock screen; unlock messages.
These works on some (fast) machines, on others not.
So, with first priority, I'm looking for a better solution that works (as mine) on Mac/Win/Linux+Raspi.
Hermann
[Edit. Added attachments]