This describes the format of the Opticks 24-bit image files. The files written by Opticks are based on the TrueVision (c) type '2' format, which is UNcompressed RGB pixel values... NOTES: * The image is stored as calculated, from top-bottom.... Now, that is backwards from TrueVision, but they supply a place to declare a top-bottom file... However, most TrueVision software does not support this mode, so see the UTIL program 'Flip' if you have this problem.... * ALL TWO-BYTE values are stored as lsb/msb BACKWARDS to most Amiga stuff.. sigh. * Pixels values are stored as three bytes, in the order Blue, Green, Red... YES!! B, G, R... It seems backwards to me, but so does bottom to top loading.... * Opticks uses a fixed size header, so it can sneak data at the end of the image ID field... There is a NULL (0) in front of this data, to protect a PRINT of the ID field from running into the bytes.... So, ID field size is restricted to 18 bytes of information, no more, no less. This info indicates the screen size of an image, though the actual image may be smaller, and may have an offset on the screen. =================================================================== Byte-for-byte HEADER breakdown here... =================================================================== Byte Description (numbers in decimal) ------ ------------ 1 value = 18 18 bytes in image ID field. 2 value = 0 No Color map associated with this image 3 value = 2 Image type 2 4-8 values = 0 Blank color map 9-10 X origin Image offset (X) 11-12 Y origin Image offset (Y) 13-14 Width Image size (X) 15-16 Height Image size (Y) 17 Value = 24 Image pixel size (bits) 18 value = 0 or 32 0 = bottom-top, 32 = top-bottom line order 19-31 ID Field (text) OPTICKS DATA: <<-(13 bytes) 32 NULL end of text string 33-34 X screen size Size of screen, of which image may be part of. 35-36 Y screen size Size of screen, (Y). 37................ IMAGE DATA