I was thinking about making some improved ImageBlock stuff, so you could create an image block by adding images(not loading) and they would be added to a memblock. So all Images that you added would be in the same memblock and could then be saved as one file...
However I have a few Questions about this...
1. In the image memblock the DEPTH value is the color depth (16/32bit), but does this mean that I should read/write words if it is 16bit, and dwords if it is 32bit?
2. Do I need to add support for 8bit images? Do they even exist anymore?
So for example:
read memblock dword memblock, 0, Width
read memblock dword memblock, 4, Height
read memblock dword memblock, 8, Depth
imageSize = Width*Height
offset = 12
for i=0 to imageSize-1
if Depth = 16
read memblock word memblock, offset, color
inc offset, 2
endif
if Depth = 32
read memblock dword memblock, offset, color
inc offset, 4
endif
next i