Loading Images From Memory

BlitzMax Forums/BlitzMax Programming/Loading Images From Memory

Makepool(Posted 2006) [#1]
Is there anyway to load a picture so that it can be used from memory? For instance, if you had an encrypted picture on the hard drive and then your blitz program decoded it, could it be then loaded from memory to used rather than having to save the unencrypted image back to the hard drive and then load it again.

That’s quite badly worded but hopefully you’ll understand what I mean.


skidracer(Posted 2006) [#2]
either develop your own image format or you could use something like the following:

LoadImage(CreateBankStream(CreateStaticBank(memory:Byte Ptr,size)))