Try the following steps:
Preparing:
Load real image into memblock.
Scramble, leaving the first 64 bytes alone
CreateImageFromMemblock()
SaveImage as xxx.jpg or xxx.png
Rename saved image as xxx.dat
Using in program:
LoadmemblockFromFile(xxx.dat)
Decrypt the memblock
CreateImageFromMemblock()
I haven't tried this, but it should work in theory! This should give you a smaller file on disk.
Alternatively, leave the image on disk as .jpg or .png and just load it to a memblock, decrypt and create the image from it.
The advantage of these techniques is that there is never an unscrambled file on the computer/phone.
You can also just encrypt the header of files, which makes them unusable.
You can do the same with .wav files. You probably don't want to smack the whole lot, which could be very slow on low-power devices.
-- Jim - When is there going to be a release?