================================ = The SVG Graphics File Format = - Version 1 as of 24.9.1995 - ================================ File Format Information ~~~~~~~~~~~~~~~~~~~~~~~ Pictures in the "SVG Graphics File Format" consist of two parts: a header and an attached xpk-packed or unpacked data file. Both parts are put into one single file. Construction: 0x00 ID UBYTE[18] "SVG Graphics File" 0x12 Version UWORD always 1 yet 0x14 GfxDataOffset ULONG header length (depends on version) 0x18 LeftEdge ULONG 0x1c TopEdge ULONG 0x20 Width ULONG 0x24 Height ULONG 0x28 ColorDepth ULONG actually available colors 0x3c ViewMode32 ULONG 32 Bit ViewMode 0x40 PixelBits UBYTE 1, 8, 24 (future: 16, 32) 0x41 PixelPlanes UBYTE # of planes with PixelBits 0x42 BytesPerLine ULONG bpl of a PixelPlane 0x46 ColorMap UBYTE [256][3] empty, if > 256 Colors After that either follows XPK compressed data or uncompressed data, which can be detected by the leading chars "XPK" or "PP20" for packed data at GfxDataOffset (relative to beginning of the file). Note: 24 Bit Data should not be saved planewise, but as 24 Bit RGB instead (16 and 32 Bit Data as well, but these are not actually supported at the moment, anyway).