Loading a bitmap that was previously saved
- Posted by SPringle Jun 21, 2010
- 1008 views
I was attepting to cache images by saving image at exit and reloading at startup. I use the following to create the image.
error_code = copyToTrueColorBitmapFile( CleanFace, sprintf(clean_face_mask(),inner_size), 0, 0, inner_size[1]-1, inner_size[2]-1 )
CleanFace is a Pixmap. The picture saves with a good error code and I can open it with an external viewer but when I tried to load back the saved file to a Pixmap loadBitmapFromFile() the copyBlt() has no effect.
I am able to load colored bitmaps produced with gimp without any problems. The program doesn't issue me a warning or an error code. Is there something I need to do to the Pixmap before passing it to copyToTrueColorBitmapFile?
Shawn Pringle