Exporting snapshots again

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

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Exporting snapshots again

Post by richmond62 » Mon Aug 16, 2021 12:26 pm

As for the last 20 odd years I have been exporting snapshots from groups without
any obvious problems I was a bit 'fidazzled' when I could not do this:

Code: Select all

export snapshot from rect of img "NAS" to file "NAS1.png" as PNG
or this:

Code: Select all

export snapshot from rect of (img "NAS") to file "NAS1.png" as PNG
The Dictionary is NO help.

andresdt
Posts: 146
Joined: Fri Aug 16, 2019 7:51 pm

Re: Exporting snapshots again

Post by andresdt » Mon Aug 16, 2021 2:50 pm

Code: Select all

export snapshot from img "NAS" to file "NAS1.png" as PNG
or

Code: Select all

export snapshot from rect( the rect of img "NAS") to file "NAS1.png" as PNG

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Exporting snapshots again

Post by richmond62 » Mon Aug 16, 2021 3:22 pm

Code: Select all

export snapshot from rect( the rect of img "NAS") to file "NAS1.png" as PNG
Does the "trick": thank you very much.

Mind you the Dictionary is 'extremely unclear' in those parts. :evil:

OOPS: NO it doesn't: it exports an image the size of image "NAS" but not of the area occupied by
image "NAS" as image "NAS" is not bang up against the left-hand side of the stack.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”