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 / Is it possible to export an image to a .BMP, .PNG or .JPG file?

Author
Message
JHA
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Massachusetts, USA
Posted: 26th Feb 2015 22:18 Edited at: 26th Feb 2015 22:50
Hello Everyone,

I am dynamically generating an image and would like to save that image to a drive, in any image format, such as .BMP, .PNG or .JPG.

Is there any way for AGK2 Tier 1 to do that?
EDIT: This program is for Windows only and will not be ported to any other device.

I've searched and couldn't find any posts related to this.

Thank you,
JHA

EDIT 2: I found the SaveImage() command, but I can't seem to get it to work. At least, I can't find the image file, once the command is called. Any ideas??

Proverbs Challenge: http://pc.potentialsunleashed.com/

Using AppGameKit V2 Tier 1 - FPSC Reloaded / Game Guru
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th Feb 2015 00:09
The image is in Users/NAME/AppData/Local/AGK/APPNAME/ by default.

You can use SetRawWritePath() to change this.

Quidquid latine dictum sit, altum sonatur
JHA
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Massachusetts, USA
Posted: 27th Feb 2015 15:36
And there they are!!! Thank you BatVink!!

Much Appreciated!!
JHA

Proverbs Challenge: http://pc.potentialsunleashed.com/

Using AppGameKit V2 Tier 1 - FPSC Reloaded / Game Guru
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 27th Feb 2015 18:04
+ here u can get a better path, as input for set path command.
but don't know what happens then at handy.
GetDocumentsPath ()

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
JHA
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Massachusetts, USA
Posted: 27th Feb 2015 23:01
Thank you Markus!!

I may not be able to try that for a while, but I'll let you know how it works, when I can.

Thanks again!!
JHA

Proverbs Challenge: http://pc.potentialsunleashed.com/

Using AppGameKit V2 Tier 1 - FPSC Reloaded / Game Guru

Login to post a reply

Server time is: 2024-11-25 18:46:06
Your offset time is: 2024-11-25 18:46:06