Saving Images and Data

Previous topic - Next topic

kamakazieturtle

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?

MrTAToad

It is, but you would need to decide how the data will actually be stored - will it be binary, text etc etc...

kamakazieturtle

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

MrTAToad

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