How to load an image from an external device and save it in flash and use it afterwards as any other images that were included in the project?
Hi,
I would like to know how I could go about loading an image from an external device and saving it in flash while modifying the BitmapDataBase (better said : creating another database that serves the same purpose as the BitmapDateBase is overwritten each time a 'generate' is done in the studio) so as to be able to use bmpId afterwards and just use it as any other image.
I'm using for now the best solution I've been able to find (far from perfect) : I pre-generate in the external flash X photos (completely transparent) of a given size and format ( 181 * 181, ARGB8888) that I place each in a section of 128K. Therefore, each space has its corresponding bitmapId that I can use afterwards. When I copy an image, I write a signature at the end of the section so as to say that there is, indeed, an image there.
However, this solution works only for images of that specific size (meaning that I've to resize smaller/bigger images so as they match these exact dimensions) and specific format. An image without transparency for instance won't paint right, unless I convert it to that specific format… So it works, but it's obviously a rather ugly solution and far from satisfying as it's rather limited.
As I haven't been able to find a way to do that properly, I'm eager to hear from you.
G.
