LoadAnimImage from an already created stream.

BlitzMax Forums/BlitzMax Programming/LoadAnimImage from an already created stream.

skn3(Posted 2006) [#1]
Is there a way to load an animimage from a stream. Basically, I want to load the image from memory instead of having to save it then load it.

I looked around for quite a while but couldn't see it. I'll probably have to extend the timage class I guess. But anyone got a predone solution ?


Dreamora(Posted 2006) [#2]
How did you get it in there?

Normally when you say "save", the structure you will save is a tpixmap and a tpixmap can be loaded into an image / animimage without problem.
But perhaps I miss something there or you used a different way?


Perturbatio(Posted 2006) [#3]
http://www.blitzbasic.com/Community/posts.php?topic=45942#510797
http://www.blitzbasic.com/Community/posts.php?topic=46072#512394


skn3(Posted 2006) [#4]
Dreamora, from a map file that packs the graphics into the map file. It just dumps the saved png direct from the png stream to the memory stream, and then compresses the final result.

Thanks Perturbatio :)