Code archives has functions that converts any image to RLE (Run Length Encoded) data statements and functions to retreive the encoded image (data statements) to an image buffer. Main advantage of this type of encoding is that you will generate significantly smaller data statemments for simple images with few colors. Loses that advantage for complex images with large color palette.
(function to take snapshot of image and function to store in memory)
http://www.blitzbasic.com/codearcs/codearcs.php?code=973
(function to store in data statements and function to restore data statement to an image buffer)
http://www.blitzbasic.com/codearcs/codearcs.php?code=974
would that work for you?
(function to take snapshot of image and function to store in memory)
http://www.blitzbasic.com/codearcs/codearcs.php?code=973
(function to store in data statements and function to restore data statement to an image buffer)
http://www.blitzbasic.com/codearcs/codearcs.php?code=974
would that work for you?