Export snapshot ?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Export snapshot ?

Post by jacque » Thu Mar 11, 2021 11:21 pm

bogs wrote:
Thu Mar 11, 2021 10:18 pm
I'm sure I'll probably regret asking this, but what pray would be the purpose of something like that?
You can snapshot any object singly even if other controls overlap or lay under it. Another advantge is that the object does not need to be visible when getting a snapshot. It can even be on a different card.

Richmond's right about groups, I forgot about that. The object export is handy there too if there are images or controls in the group you don't want to capture; you can single out one control inside the group and snapshot that without worrying about the other controls underneath or a background color set on the group.

If I were playing with this image and wanted to save the result without the button I can export only the image object. I did this from another card in the stack. The yellow border is an effect applied to the group.
Darts.jpg
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9841
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Export snapshot ?

Post by FourthWorld » Fri Mar 12, 2021 1:25 am

bogs wrote:
Thu Mar 11, 2021 9:50 pm
FourthWorld wrote:
Thu Mar 11, 2021 9:35 pm
For exports, blendLevel works
I don't see it working here. Either that, or your interpretation of what should be in the final export isn't what I'm interpreting should be there.
Relevant config:
LC 9.6.2 RC2
Ubuntu 20.04.2 LTS (stock, w/ Gnome Shell)

Relevant button properties:
ink: blendDst
dropShadow["opacity"]: 101
innerGlow["opacity"]: 178

Using this:

Code: Select all

export snapshot from the selobj with effects to file "test.png" as png
...on this:
Screenshot from 2021-03-11 16-06-56.png
Screenshot from 2021-03-11 16-06-56.png (5.09 KiB) Viewed 1436 times
...gives me this:
test.png
test.png (2.06 KiB) Viewed 1436 times
Import that attached exported image into LC or a graphics program to see the PNG alpha channel working, e.g.:
Screenshot from 2021-03-11 16-20-07.png
Screenshot from 2021-03-11 16-20-07.png (6.83 KiB) Viewed 1436 times
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Export snapshot ?

Post by bogs » Fri Mar 12, 2021 11:26 am

I see. Thank you all for the explanation, apparently my interpretation is off, oh well.
Image

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”