Good day!
I simply want to capture an image using device's camera and save the photo or email the photo, but I cannot seem to get to control templateImage.
I probably just don't know how to address to it? I tried random things, but somehow stuck.
Code: Select all
on mouseUp
set the lockloc of the templateimage to true
set the width of the templateimage to "150"
set the height of the templateimage to "150"
set the left of the templateimage to "10"
set the top of the templateimage to "10"
// To open native camera
mobilePickPhoto "camera"
set the name of the templateImage to "Test"
create img
// This one returns "not a supported format", which means the object is not of PNG, GIF of JPEG.
// How can I make it JPEG anyway?
put the long ID of image "Test" into tImageID
mobileExportImageToAlbum tImageID
// This evaluates to TRUE
answer exists(img "Test")
// But this one says "cannot find *"
mobileExportImageToAlbum img "Test"
end mouseUp
Can I send templateImage() as an attachment to an email (in MobileComposeMail)?
How do I copy template image into another image object/control?
Any insights would be greatly appreciated.

Regards,
Genie