Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / SaveImage with a GetCapturedImage?

Author
Message
Cagmaster
8
Years of Service
User Offline
Joined: 23rd Feb 2016
Location:
Posted: 23rd Feb 2016 15:34
Hello!

If I get an image ID with GetCapturedImage(), after taking a photo with the device's camera...

How can I save the image locally? Easiest way would be SaveImage(id, "photo.png") but it doesn't work. Also tried with memblocks, but got nothing.

Any suggestion?
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 23rd Feb 2016 15:49
hi, try this example there if you see the image on screen first.
http://www.appgamekit.com/documentation/Reference/Image/ShowImageCaptureScreen.htm

also look this commands
GetErrorOccurred ()
GetLastError ()
SetErrorMode ( mode )
AGK (Steam) V2.0.16 : Windows 10 Pro 64 Bit : AMD (15.30.1025) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Cagmaster
8
Years of Service
User Offline
Joined: 23rd Feb 2016
Location:
Posted: 23rd Feb 2016 15:55
Hey Markus, yes, the image is showing perfectly after is taken, but is not saved locally, either in the write folder or the media folder.

My code is something like this.

CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 23rd Feb 2016 16:39
Quote: "Easiest way would be SaveImage(id, "photo.png") but it doesn't work."
What happens when you try this? The photo should get saved into the app-data sandbox. Don't expect the photo to appear in your album using this method. If that is your goal, then try using printimage instead.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Cagmaster
8
Years of Service
User Offline
Joined: 23rd Feb 2016
Location:
Posted: 23rd Feb 2016 16:59
SOLVED! I was very stupid, didn't realize that I was executing the app in my phone and the image wouldn't appear in my pc but in my phone. Thanks CJB for making me think

Login to post a reply

Server time is: 2024-11-25 09:33:33
Your offset time is: 2024-11-25 09:33:33