import snapshot

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

import snapshot

Post by Dixie » Sun Mar 23, 2014 2:25 am

I have been using the following in LC 6.5.2 to take a snapshot of an area of a map, hiding the map and replacing it with the snapshot...

Code: Select all

set the margins of the templateImage to 0
import snapshot from rect (0,40, the width of card "map", the height of card "map" -40 )
set the name of the last image of card "map" to "mapic"  
LC 6.6 does not like this at all !... it makes the snapshot about a quarter of the size in width but it seems to squash it a little in the vertical too... I have tried the new snapshot syntax with at size, but can't get it to play...Anyone found out how to take a snapshot in LC 6.6 yet ?

James Little
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 47
Joined: Thu Apr 27, 2006 11:19 pm

Re: import snapshot

Post by James Little » Wed Mar 26, 2014 5:42 pm

Hey Dixie,

I had the same issue with "export snapshot from rect the screenRect". The image was squashed as well. When I tried export snapshot from this card it worked fine. I think it's probably a bug.

-Todd

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: import snapshot

Post by Dixie » Thu Mar 27, 2014 5:40 pm

Todd..

I submitted a 'bug' report about this... It has been confimed as a bug..

Post Reply