HexDump of RASTFILE.TXT



00000000: 2f 2a 09 43 6f 70 79 72 - 69 67 68 74 20 53 75 6e   ...Copyr ight.Sun
00000010: 20 4d 69 63 72 6f 73 79 - 73 74 65 6d 73 2e 20 20   .Microsy stems...
00000020: 49 6e 63 6c 75 64 65 64 - 20 77 69 74 68 20 70 65   Included .with.pe
00000030: 72 6d 69 73 73 69 6f 6e - 09 2a 2f 0a 2f 2a 09 40   rmission ........
00000040: 28 23 29 72 61 73 74 65 - 72 66 69 6c 65 2e 68 20   ...raste rfile.h.
00000050: 31 2e 31 31 20 38 39 2f - 30 38 2f 32 31 20 53 4d   1.11.89. 08.21.SM
00000060: 49 09 2a 2f 0a 0a 2f 2a - 0a 20 2a 20 44 65 73 63   I....... ....Desc
00000070: 72 69 70 74 69 6f 6e 20 - 6f 66 20 68 65 61 64 65   ription. of.heade
00000080: 72 20 66 6f 72 20 66 69 - 6c 65 73 20 63 6f 6e 74   r.for.fi les.cont
00000090: 61 69 6e 69 6e 67 20 72 - 61 73 74 65 72 20 69 6d   aining.r aster.im
000000a0: 61 67 65 73 0a 20 2a 2f - 0a 0a 23 69 66 6e 64 65   ages.... ...ifnde
000000b0: 66 20 5f 72 61 73 74 65 - 72 66 69 6c 65 5f 68 0a   f..raste rfile.h.
000000c0: 23 64 65 66 69 6e 65 20 - 5f 72 61 73 74 65 72 66   .define. .rasterf
000000d0: 69 6c 65 5f 68 0a 0a 73 - 74 72 75 63 74 20 72 61   ile.h..s truct.ra
000000e0: 73 74 65 72 66 69 6c 65 - 20 7b 0a 09 69 6e 74 09   sterfile ....int.
000000f0: 72 61 73 5f 6d 61 67 69 - 63 3b 09 09 2f 2a 20 6d   ras.magi c......m
00000100: 61 67 69 63 20 6e 75 6d - 62 65 72 20 2a 2f 0a 09   agic.num ber.....
00000110: 69 6e 74 09 72 61 73 5f - 77 69 64 74 68 3b 09 09   int.ras. width...
00000120: 2f 2a 20 77 69 64 74 68 - 20 28 70 69 78 65 6c 73   ...width ..pixels
00000130: 29 20 6f 66 20 69 6d 61 - 67 65 20 2a 2f 0a 09 69   ..of.ima ge.....i
00000140: 6e 74 09 72 61 73 5f 68 - 65 69 67 68 74 3b 09 09   nt.ras.h eight...
00000150: 2f 2a 20 68 65 69 67 68 - 74 20 28 70 69 78 65 6c   ...heigh t..pixel
00000160: 73 29 20 6f 66 20 69 6d - 61 67 65 20 2a 2f 0a 09   s..of.im age.....
00000170: 69 6e 74 09 72 61 73 5f - 64 65 70 74 68 3b 09 09   int.ras. depth...
00000180: 2f 2a 20 64 65 70 74 68 - 20 28 31 2c 20 38 2c 20   ...depth ..1..8..
00000190: 6f 72 20 32 34 20 62 69 - 74 73 29 20 6f 66 20 70   or.24.bi ts..of.p
000001a0: 69 78 65 6c 20 2a 2f 0a - 09 69 6e 74 09 72 61 73   ixel.... .int.ras
000001b0: 5f 6c 65 6e 67 74 68 3b - 09 09 2f 2a 20 6c 65 6e   .length. .....len
000001c0: 67 74 68 20 28 62 79 74 - 65 73 29 20 6f 66 20 69   gth..byt es..of.i
000001d0: 6d 61 67 65 20 2a 2f 0a - 09 69 6e 74 09 72 61 73   mage.... .int.ras
000001e0: 5f 74 79 70 65 3b 09 09 - 2f 2a 20 74 79 70 65 20   .type... ...type.
000001f0: 6f 66 20 66 69 6c 65 3b - 20 73 65 65 20 52 54 5f   of.file. .see.RT.
00000200: 2a 20 62 65 6c 6f 77 20 - 2a 2f 0a 09 69 6e 74 09   ..below. ....int.
00000210: 72 61 73 5f 6d 61 70 74 - 79 70 65 3b 09 09 2f 2a   ras.mapt ype.....
00000220: 20 74 79 70 65 20 6f 66 - 20 63 6f 6c 6f 72 6d 61   .type.of .colorma
00000230: 70 3b 20 73 65 65 20 52 - 4d 54 5f 2a 20 62 65 6c   p..see.R MT...bel
00000240: 6f 77 20 2a 2f 0a 09 69 - 6e 74 09 72 61 73 5f 6d   ow.....i nt.ras.m
00000250: 61 70 6c 65 6e 67 74 68 - 3b 09 09 2f 2a 20 6c 65   aplength ......le
00000260: 6e 67 74 68 20 28 62 79 - 74 65 73 29 20 6f 66 20   ngth..by tes..of.
00000270: 66 6f 6c 6c 6f 77 69 6e - 67 20 6d 61 70 20 2a 2f   followin g.map...
00000280: 0a 09 2f 2a 20 63 6f 6c - 6f 72 20 6d 61 70 20 66   .....col or.map.f
00000290: 6f 6c 6c 6f 77 73 20 66 - 6f 72 20 72 61 73 5f 6d   ollows.f or.ras.m
000002a0: 61 70 6c 65 6e 67 74 68 - 20 62 79 74 65 73 2c 20   aplength .bytes..
000002b0: 66 6f 6c 6c 6f 77 65 64 - 20 62 79 20 69 6d 61 67   followed .by.imag
000002c0: 65 20 2a 2f 0a 7d 3b 0a - 23 64 65 66 69 6e 65 09   e....... .define.
000002d0: 52 41 53 5f 4d 41 47 49 - 43 09 30 78 35 39 61 36   RAS.MAGI C.0x59a6
000002e0: 36 61 39 35 0a 0a 09 2f - 2a 20 53 75 6e 20 73 75   6a95.... ..Sun.su
000002f0: 70 70 6f 72 74 65 64 20 - 72 61 73 5f 74 79 70 65   pported. ras.type
00000300: 27 73 20 2a 2f 0a 23 64 - 65 66 69 6e 65 20 52 54   .s.....d efine.RT
00000310: 5f 4f 4c 44 09 09 30 09 - 2f 2a 20 52 61 77 20 70   .OLD..0. ...Raw.p
00000320: 69 78 72 65 63 74 20 69 - 6d 61 67 65 20 69 6e 20   ixrect.i mage.in.
00000330: 36 38 30 30 30 20 62 79 - 74 65 20 6f 72 64 65 72   68000.by te.order
00000340: 20 2a 2f 0a 23 64 65 66 - 69 6e 65 20 52 54 5f 53   .....def ine.RT.S
00000350: 54 41 4e 44 41 52 44 09 - 31 09 2f 2a 20 52 61 77   TANDARD. 1....Raw
00000360: 20 70 69 78 72 65 63 74 - 20 69 6d 61 67 65 20 69   .pixrect .image.i
00000370: 6e 20 36 38 30 30 30 20 - 62 79 74 65 20 6f 72 64   n.68000. byte.ord
00000380: 65 72 20 2a 2f 0a 23 64 - 65 66 69 6e 65 20 52 54   er.....d efine.RT
00000390: 5f 42 59 54 45 5f 45 4e - 43 4f 44 45 44 09 32 09   .BYTE.EN CODED.2.
000003a0: 2f 2a 20 52 75 6e 2d 6c - 65 6e 67 74 68 20 63 6f   ...Run.l ength.co
000003b0: 6d 70 72 65 73 73 69 6f - 6e 20 6f 66 20 62 79 74   mpressio n.of.byt
000003c0: 65 73 20 2a 2f 0a 23 64 - 65 66 69 6e 65 20 52 54   es.....d efine.RT
000003d0: 5f 46 4f 52 4d 41 54 5f - 52 47 42 09 33 09 2f 2a   .FORMAT. RGB.3...
000003e0: 20 58 52 47 42 20 6f 72 - 20 52 47 42 20 69 6e 73   .XRGB.or .RGB.ins
000003f0: 74 65 61 64 20 6f 66 20 - 58 42 47 52 20 6f 72 20   tead.of. XBGR.or.