Page 1 of 1

can not save screen rect into album

Posted: Wed Jul 31, 2013 4:45 am
by terryho
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

Re: can not save screen rect into album

Posted: Wed Jul 31, 2013 5:01 am
by Simon
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

Re: can not save screen rect into album

Posted: Wed Jul 31, 2013 12:12 pm
by Klaus
Ni hao Terry,

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


Best

Klaus

Re: can not save screen rect into album

Posted: Thu Aug 01, 2013 2:53 pm
by terryho
Hi all,

Thanks the hints.

I will test it.

Regards

Terry Ho