can not save screen rect into album

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
terryho
Posts: 126
Joined: Mon Nov 05, 2012 2:53 pm

can not save screen rect into album

Post by terryho » Wed Jul 31, 2013 4:45 am

Hi,

I had problem to save the some of the screen rect into the album. The following is my code :

put 0,0,320,640 into timgRect
import snapshot from rect tImgRect
put the id of last image into tImageID
set the name of image id tImageID to "The_Image"
mobileExportImageToAlbum tImageID
delete last image

I use the above code, nothing saving in the album. Can any one advise me?

Regards

Terry Ho

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: can not save screen rect into album

Post by Simon » Wed Jul 31, 2013 5:01 am

Hi Terry,
The dictionary says use the long ID:
// Android only
put the long ID of image "myImage" into tImageID
mobileExportImageToAlbum tImageID, "my_file"
for you that would be:
put the long ID of the last image into tImageID

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: can not save screen rect into album

Post by Klaus » Wed Jul 31, 2013 12:12 pm

Ni hao Terry,

in case like these, a quick check for the correct syntax in the dictionary might be quite helpful! 8-)


Best

Klaus

terryho
Posts: 126
Joined: Mon Nov 05, 2012 2:53 pm

Re: can not save screen rect into album

Post by terryho » Thu Aug 01, 2013 2:53 pm

Hi all,

Thanks the hints.

I will test it.

Regards

Terry Ho

Post Reply