Memblocks can be structured any way you like so long as you read the data out again properly, but to create images, sounds or meshes from them they need to be structured properly. The help files in DBC gave quite clear information on how the memblocks are structured, but this appears to have been dropped in DBPro, which is annoying. Here's a starter:
Image memblocks, using MAKE MEMBLOCK FROM IMAGE and MAKE IMAGE FROM MEMBLOCK.
Header info - 12 bytes:
0 - dword - width
4 - dword - height
8 - dword - depth
The rest of the data:
12 onwards - read/write bytes, words or dwords depending on the depth you specified at position 8 (16 bit depth = 2 bytes = 1 word per pixel). This contains color information, and carries on for as many pixels as there are in the image (width * height). The RGB command returns a dword, which you can use here.
Once I was but the learner,
now, I am the Master.