HexDump of SUN_RAS.TXT



00000000: 46 72 6f 6d 20 65 2d 6d - 61 69 6c 20 72 65 63 65   From.e.m ail.rece
00000010: 69 76 65 64 20 62 79 20 - 74 68 65 20 61 75 74 68   ived.by. the.auth
00000020: 6f 72 3a 0d 0a 0d 0a 20 - 20 20 2e 2e 2e 20 74 68   or...... ......th
00000030: 65 20 6d 61 6e 70 61 67 - 65 20 66 6f 72 20 0d 0a   e.manpag e.for...
00000040: 72 61 73 74 65 72 66 69 - 6c 65 28 35 29 20 64 6f   rasterfi le.5..do
00000050: 65 73 6e 27 74 20 73 61 - 79 20 61 6e 79 74 68 69   esn.t.sa y.anythi
00000060: 6e 67 20 61 62 6f 75 74 - 20 74 68 65 20 66 6f 72   ng.about .the.for
00000070: 6d 61 74 20 6f 66 20 62 - 79 74 65 2d 65 6e 63 6f   mat.of.b yte.enco
00000080: 64 65 64 0d 0a 69 6d 61 - 67 65 73 2c 20 6f 72 20   ded..ima ges..or.
00000090: 61 62 6f 75 74 20 70 6c - 61 6e 65 2f 73 63 61 6e   about.pl ane.scan
000000a0: 6c 69 6e 65 20 6f 72 64 - 65 72 69 6e 67 20 69 6e   line.ord ering.in
000000b0: 20 6d 75 6c 74 69 2d 70 - 6c 61 6e 65 20 69 6d 61   .multi.p lane.ima
000000c0: 67 65 73 2e 0d 0a 50 72 - 65 74 74 79 20 63 6f 6f   ges...Pr etty.coo
000000d0: 6c 2c 20 79 65 73 3f 20 - 20 41 6e 79 77 61 79 2c   l..yes.. .Anyway.
000000e0: 20 49 20 68 61 76 65 20 - 74 68 65 20 66 69 72 6d   .I.have. the.firm
000000f0: 6c 79 20 68 65 6c 64 20 - 62 65 6c 69 65 66 20 74   ly.held. belief.t
00000100: 68 61 74 20 74 68 69 73 - 0d 0a 69 6e 66 6f 72 6d   hat.this ..inform
00000110: 61 74 69 6f 6e 20 73 68 - 6f 75 6c 64 6e 27 74 20   ation.sh ouldn.t.
00000120: 62 65 20 61 73 20 68 61 - 72 64 20 74 6f 20 63 6f   be.as.ha rd.to.co
00000130: 6d 65 20 62 79 20 61 73 - 20 69 74 20 77 61 73 20   me.by.as .it.was.
00000140: 66 6f 72 20 6d 65 2e 20 - 20 53 6f 0d 0a 69 6e 20   for.me.. .So..in.
00000150: 74 68 65 20 69 6e 74 65 - 72 65 73 74 20 6f 66 20   the.inte rest.of.
00000160: 73 70 72 65 61 64 69 6e - 67 20 74 68 65 20 64 61   spreadin g.the.da
00000170: 74 61 20 66 61 72 20 61 - 6e 64 20 77 69 64 65 2c   ta.far.a nd.wide.
00000180: 20 68 65 72 65 20 69 73 - 20 77 68 61 74 20 49 0d   .here.is .what.I.
00000190: 0a 6b 6e 6f 77 20 61 62 - 6f 75 74 20 74 68 65 20   .know.ab out.the.
000001a0: 73 75 6e 20 72 61 73 74 - 65 72 66 69 6c 65 20 66   sun.rast erfile.f
000001b0: 6f 72 6d 61 74 2e 20 20 - 0d 0a 0d 0a 54 68 65 20   ormat... ....The.
000001c0: 66 69 72 73 74 20 74 68 - 69 6e 67 20 69 6e 20 74   first.th ing.in.t
000001d0: 68 65 20 66 69 6c 65 20 - 69 73 0d 0a 0d 0a 09 73   he.file. is.....s
000001e0: 74 72 75 63 74 20 72 61 - 73 74 65 72 66 69 6c 65   truct.ra sterfile
000001f0: 20 7b 0d 0a 09 09 69 6e - 74 20 72 61 73 5f 6d 61   ......in t.ras.ma
00000200: 67 69 63 3b 0d 0a 09 09 - 69 6e 74 20 72 61 73 5f   gic..... int.ras.
00000210: 77 69 64 74 68 3b 0d 0a - 09 09 69 6e 74 20 72 61   width... ..int.ra
00000220: 73 5f 68 65 69 67 68 74 - 3b 0d 0a 09 09 69 6e 74   s.height .....int
00000230: 20 72 61 73 5f 64 65 70 - 74 68 3b 0d 0a 09 09 69   .ras.dep th.....i
00000240: 6e 74 20 72 61 73 5f 6c - 65 6e 67 74 68 3b 0d 0a   nt.ras.l ength...
00000250: 09 09 69 6e 74 20 72 61 - 73 5f 74 79 70 65 3b 0d   ..int.ra s.type..
00000260: 0a 09 09 69 6e 74 20 72 - 61 73 5f 6d 61 70 74 79   ...int.r as.mapty
00000270: 70 65 3b 0d 0a 09 09 69 - 6e 74 20 72 61 73 5f 6d   pe.....i nt.ras.m
00000280: 61 70 6c 65 6e 67 74 68 - 3b 0d 0a 09 09 7d 3b 0d   aplength ........
00000290: 0a 54 68 65 20 72 61 73 - 5f 6d 61 67 69 63 20 66   .The.ras .magic.f
000002a0: 69 65 6c 64 20 61 6c 77 - 61 79 73 20 63 6f 6e 74   ield.alw ays.cont
000002b0: 61 69 6e 73 20 74 68 65 - 20 66 6f 6c 6c 6f 77 69   ains.the .followi
000002c0: 6e 67 20 63 6f 6e 73 74 - 61 6e 74 3a 0d 0a 0d 0a   ng.const ant.....
000002d0: 09 23 64 65 66 69 6e 65 - 20 52 41 53 5f 4d 41 47   ..define .RAS.MAG
000002e0: 49 43 20 30 78 35 39 61 - 36 36 61 39 35 0d 0a 0d   IC.0x59a 66a95...
000002f0: 0a 54 68 65 20 72 61 73 - 5f 6c 65 6e 67 74 68 20   .The.ras .length.
00000300: 66 69 65 6c 64 20 69 73 - 20 74 68 65 20 6c 65 6e   field.is .the.len
00000310: 67 74 68 20 6f 66 20 74 - 68 65 20 69 6d 61 67 65   gth.of.t he.image
00000320: 20 64 61 74 61 20 28 77 - 68 69 63 68 20 69 73 20   .data..w hich.is.
00000330: 74 68 65 20 6c 65 6e 67 - 74 68 0d 0a 6f 66 20 74   the.leng th..of.t
00000340: 68 65 20 66 69 6c 65 20 - 6d 69 6e 75 73 20 74 68   he.file. minus.th
00000350: 65 20 6c 65 6e 67 74 68 - 20 6f 66 20 74 68 65 20   e.length .of.the.
00000360: 68 65 61 64 65 72 20 61 - 6e 64 20 63 6f 6c 6f 72   header.a nd.color
00000370: 6d 61 70 29 2e 20 20 43 - 61 74 63 68 3a 20 74 68   map....C atch..th
00000380: 69 73 0d 0a 69 73 20 73 - 6f 6d 65 74 69 6d 65 73   is..is.s ometimes
00000390: 20 7a 65 72 6f 20 69 6e - 73 74 65 61 64 2c 20 73   .zero.in stead..s
000003a0: 6f 20 79 6f 75 20 63 61 - 6e 27 74 20 72 65 61 6c   o.you.ca n.t.real
000003b0: 6c 79 20 64 65 70 65 6e - 64 20 6f 6e 20 69 74 2e   ly.depen d.on.it.
000003c0: 0d 0a 0d 0a 54 68 65 20 - 72 61 73 5f 74 79 70 65   ....The. ras.type
000003d0: 20 66 69 65 6c 64 20 69 - 73 20 72 61 73 5f 6f 6c   .field.i s.ras.ol
000003e0: 64 3d 30 2c 20 72 61 73 - 5f 73 74 61 6e 64 61 72   d.0..ras .standar
000003f0: 64 3d 31 2c 20 72 61 73 - 5f 62 79 74 65 5f 65 6e   d.1..ras .byte.en