GLBasic forum

Main forum => GLBasic - en => Topic started by: kamakazieturtle on 2010-Oct-18

Title: Saving Images and Data
Post by: kamakazieturtle on 2010-Oct-18
Is it possible to save a file that stores and image, as well as data to be read when loading? If so how would I do it?
Title: Re: Saving Images and Data
Post by: MrTAToad on 2010-Oct-18
It is, but you would need to decide how the data will actually be stored - will it be binary, text etc etc...
Title: Re: Saving Images and Data
Post by: kamakazieturtle on 2010-Oct-18
Currently I only need to save an image with numbers, but it could become more advanced. And having text could defiantly be beneficial. Is it possible to do all three?

Thanks for the fast reply.  =D
Title: Re: Saving Images and Data
Post by: MrTAToad on 2010-Oct-18
Oh yes - the easiest way would be to do a simple RLE compression, possibly using hexadecimal text.

See http://www.glbasic.com/showroom.php?site=games&game=graphicstodataconversion&lang=en for an example.  I think the source code is around these forums somewhere