Image packages?BlitzPlus Forums/BlitzPlus Beginners Area/Image packages?
| I want to pack my JPGs into a single file and load images from that file without making temp files. Possible?|
I guess it could be done by storing the pixel data by hand as binary data, and then drawing the images back pixel by pixel. I fear this method is too slow and would bloat the files.
Has anyone succesfully hacked DC handles for B+ image buffers? If so, one could use image libraries like FreeImage to do the trick.
| Perhaps cram all images in one huge image, and then after loading that single huge image manually grab all the individual images into seperate created images... no fun job.. I know.. you want incbin for B+ .. |
| Try "Blitz media linker"... |
| I don't want to include the files into the executable.|
Perhaps I just have to accept temp files.
| If you use a routine that makes temp files, simply run the proper freetempfiles function IMMEDIATELY after loading the media into handles. This narrows the window of opportunity for the end user to 'find' the files on their hard drive to a few seconds. If the scheme loads the files into the windows tempdir or somewhere similar, with innocuous file names, i.e. '~3847566.tmp', it's pretty hard for people to find them. The files can easily be deleted once they are loaded into blitz anyway. |
| Use Molebox:|