Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: RickJ on Sat 06/03/2004 02:41:50

Title: LoadImageFile() question ...
Post by: RickJ on Sat 06/03/2004 02:41:50
The help file says that only BMP and PCX files can be loaded using the LoadImageFile() function.  Is this correct or is it possible to load PNG files since they are now also supported by the editor?  
Title: Re:LoadImageFile() question ...
Post by: Kweepa on Sat 06/03/2004 10:15:38
I certainly couldn't get it to work.
That was attempting a PNG-24 written with the save to web feature of Photoshop.
Try it out and let *us* know!
Title: Re:LoadImageFile() question ...
Post by: Scorpiorus on Sat 06/03/2004 12:44:39
I think it's probably because the engine doesn't have a png decoder built-in. :P Though I haven't tried to load it yet.
Title: Re:LoadImageFile() question ...
Post by: RickJ on Sun 07/03/2004 18:06:26
I was wondering if somethin like that wwas the case of if had just been overlooked in the documentation, or just not gotten implemented yet.  
Title: Re:LoadImageFile() question ...
Post by: Pumaman on Sun 07/03/2004 19:04:11
The engine can only load PCX and BMP. The PNG decoder is a fairly hefty bit of code, and adding it to the engine would probably increase the EXE size by 50-100 KB. I felt it would be adding unnecessary bloat, considering the number of people who would actually want to use it.

Sorry :)
Title: Re:LoadImageFile() question ...
Post by: RickJ on Sun 07/03/2004 20:31:27
No problem Chris.   As I said I was just curious and making some future plans to use the new LoadImage feature.