home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / VideoToolboxSources / WindowToEPS.c < prev    next >
MacBinary  |  1995-07-27  |  14.5 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: WindowToEPS.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Jul 27 02:00:24 1995, modified Thu Jul 27 02:00:24 1995, creator 'CWIE', type ASCII, 14197 bytes "WindowToEPS.c" , at 0x37f5 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 57 69 6e 64 6f 77 | 54 6f 45 50 53 2e 63 00 |..Window|ToEPS.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 37 75 00 | 00 01 9a ac 3c db f8 ac |.....7u.|....<...|
|00000060| 3c db f8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |<.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ec 13 00 00 |........|........|
|00000080| 2f 2a 0d 57 69 6e 64 6f | 77 54 6f 45 50 53 2e 63 |/*.Windo|wToEPS.c|
|00000090| 0d 43 6f 70 79 72 69 67 | 68 74 20 a9 20 31 39 39 |.Copyrig|ht . 199|
|000000a0| 34 2c 31 39 39 35 20 44 | 65 6e 69 73 20 47 2e 20 |4,1995 D|enis G. |
|000000b0| 50 65 6c 6c 69 0d 0d 57 | 69 6e 64 6f 77 54 6f 45 |Pelli..W|indowToE|
|000000c0| 50 53 28 77 69 6e 64 6f | 77 2c 66 69 6c 65 6e 61 |PS(windo|w,filena|
|000000d0| 6d 65 2c 72 65 63 74 50 | 74 72 2c 70 61 67 65 52 |me,rectP|tr,pageR|
|000000e0| 65 63 74 50 74 72 2c 63 | 65 6c 6c 73 50 65 72 49 |ectPtr,c|ellsPerI|
|000000f0| 6e 63 68 2c 67 72 61 79 | 4c 65 76 65 6c 73 2c 72 |nch,gray|Levels,r|
|00000100| 65 66 6c 65 63 74 61 6e | 63 65 29 3b 0d 0d 57 69 |eflectan|ce);..Wi|
|00000110| 6e 64 6f 77 54 6f 45 50 | 53 20 63 6f 6e 76 65 72 |ndowToEP|S conver|
|00000120| 74 73 20 61 20 67 72 61 | 79 73 63 61 6c 65 20 69 |ts a gra|yscale i|
|00000130| 6d 61 67 65 20 28 69 6e | 20 61 20 77 69 6e 64 6f |mage (in| a windo|
|00000140| 77 20 6f 72 20 47 57 6f | 72 6c 64 29 20 74 6f 20 |w or GWo|rld) to |
|00000150| 61 20 50 6f 73 74 53 63 | 72 69 70 74 0d 66 69 6c |a PostSc|ript.fil|
|00000160| 65 20 74 68 61 74 20 61 | 20 4c 61 73 65 72 57 72 |e that a| LaserWr|
|00000170| 69 74 65 72 20 6f 72 20 | 4c 69 6e 6f 74 79 70 65 |iter or |Linotype|
|00000180| 20 77 69 6c 6c 20 61 63 | 63 75 72 61 74 65 6c 79 | will ac|curately|
|00000190| 20 72 65 6e 64 65 72 20 | 6f 6e 20 70 61 70 65 72 | render |on paper|
|000001a0| 2e 20 54 68 65 20 6f 75 | 74 70 75 74 0d 66 69 6c |. The ou|tput.fil|
|000001b0| 65 20 69 73 20 61 20 73 | 74 61 6e 64 61 72 64 20 |e is a s|tandard |
|000001c0| 45 6e 63 61 70 73 75 6c | 61 74 65 64 20 50 6f 73 |Encapsul|ated Pos|
|000001d0| 74 53 63 72 69 70 74 20 | 46 69 6c 65 2c 20 77 69 |tScript |File, wi|
|000001e0| 74 68 20 66 69 6c 65 20 | 74 79 70 65 20 27 45 50 |th file |type 'EP|
|000001f0| 53 46 27 2c 20 63 6f 6d | 6d 6f 6e 6c 79 0d 72 65 |SF', com|monly.re|
|00000200| 66 65 72 72 65 64 20 74 | 6f 20 61 73 20 61 6e 20 |ferred t|o as an |
|00000210| 22 65 70 73 22 20 66 69 | 6c 65 2e 20 4d 6f 73 74 |"eps" fi|le. Most|
|00000220| 20 77 6f 72 64 20 70 72 | 6f 63 65 73 73 6f 72 73 | word pr|ocessors|
|00000230| 2c 20 65 2e 67 2e 20 57 | 6f 72 64 20 61 6e 64 20 |, e.g. W|ord and |
|00000240| 50 61 67 65 4d 61 6b 65 | 72 2c 20 6b 6e 6f 77 0d |PageMake|r, know.|
|00000250| 68 6f 77 20 74 6f 20 69 | 6d 70 6f 72 74 20 65 70 |how to i|mport ep|
|00000260| 73 20 66 69 6c 65 73 2e | 20 4d 61 63 69 6e 74 6f |s files.| Macinto|
|00000270| 73 68 65 73 20 6f 6e 6c | 79 20 75 6e 64 65 72 73 |shes onl|y unders|
|00000280| 74 61 6e 64 20 51 75 69 | 63 6b 44 72 61 77 2c 20 |tand Qui|ckDraw, |
|00000290| 6e 6f 74 20 50 6f 73 74 | 53 63 72 69 70 74 2c 0d |not Post|Script,.|
|000002a0| 73 6f 20 74 68 65 79 20 | 64 6f 6e 27 74 20 6b 6e |so they |don't kn|
|000002b0| 6f 77 20 77 68 61 74 20 | 69 6d 61 67 65 20 74 68 |ow what |image th|
|000002c0| 65 20 50 6f 73 74 53 63 | 72 69 70 74 20 63 6f 64 |e PostSc|ript cod|
|000002d0| 65 20 77 6f 75 6c 64 20 | 70 72 6f 64 75 63 65 2e |e would |produce.|
|000002e0| 20 54 68 61 74 27 73 20 | 77 68 79 20 74 68 65 0d | That's |why the.|
|000002f0| 65 70 73 20 66 69 6c 65 | 20 69 6e 63 6c 75 64 65 |eps file| include|
|00000300| 73 20 61 20 50 49 43 54 | 20 72 65 73 6f 75 72 63 |s a PICT| resourc|
|00000310| 65 20 74 68 61 74 20 70 | 72 6f 76 69 64 65 73 20 |e that p|rovides |
|00000320| 61 6e 20 6f 6e 2d 73 63 | 72 65 65 6e 20 70 72 65 |an on-sc|reen pre|
|00000330| 76 69 65 77 2c 20 73 6f | 20 74 68 65 0d 69 6d 61 |view, so| the.ima|
|00000340| 67 65 20 77 69 6c 6c 20 | 6c 6f 6f 6b 20 61 70 70 |ge will |look app|
|00000350| 72 6f 78 69 6d 61 74 65 | 6c 79 20 72 69 67 68 74 |roximate|ly right|
|00000360| 20 6f 6e 20 79 6f 75 72 | 20 6d 6f 6e 69 74 6f 72 | on your| monitor|
|00000370| 20 73 63 72 65 65 6e 2c | 20 65 2e 67 2e 20 69 6e | screen,| e.g. in|
|00000380| 20 57 6f 72 64 2e 20 54 | 6f 0d 69 6d 70 6f 72 74 | Word. T|o.import|
|00000390| 20 69 6e 20 57 6f 72 64 | 2c 20 75 73 65 20 74 68 | in Word|, use th|
|000003a0| 65 20 49 6e 73 65 72 74 | 3a 50 69 63 74 75 72 65 |e Insert|:Picture|
|000003b0| 20 6f 72 20 49 6e 73 65 | 72 74 3a 46 69 6c 65 20 | or Inse|rt:File |
|000003c0| 63 6f 6d 6d 61 6e 64 2e | 20 4f 6e 63 65 20 69 6d |command.| Once im|
|000003d0| 70 6f 72 74 65 64 2c 20 | 79 6f 75 0d 63 61 6e 20 |ported, |you.can |
|000003e0| 67 65 74 20 57 6f 72 64 | 20 74 6f 20 72 65 73 63 |get Word| to resc|
|000003f0| 61 6c 65 20 74 68 65 20 | 69 6d 61 67 65 20 62 79 |ale the |image by|
|00000400| 20 64 72 61 67 67 69 6e | 67 20 74 68 65 20 69 6d | draggin|g the im|
|00000410| 61 67 65 27 73 20 6c 6f | 77 65 72 20 72 69 67 68 |age's lo|wer righ|
|00000420| 74 20 63 6f 72 6e 65 72 | 0d 77 68 69 6c 65 20 68 |t corner|.while h|
|00000430| 6f 6c 64 69 6e 67 20 64 | 6f 77 6e 20 74 68 65 20 |olding d|own the |
|00000440| 73 68 69 66 74 20 6b 65 | 79 2e 20 54 72 79 20 74 |shift ke|y. Try t|
|00000450| 68 65 20 56 69 64 65 6f | 54 6f 6f 6c 62 6f 78 20 |he Video|Toolbox |
|00000460| 64 65 6d 6f 20 47 72 61 | 74 69 6e 67 2e 0d 0d 42 |demo Gra|ting...B|
|00000470| 65 61 72 20 69 6e 20 6d | 69 6e 64 20 74 68 61 74 |ear in m|ind that|
|00000480| 20 6f 6e 2d 73 63 72 65 | 65 6e 20 79 6f 75 27 72 | on-scre|en you'r|
|00000490| 65 20 6c 6f 6f 6b 69 6e | 67 20 61 74 20 74 68 65 |e lookin|g at the|
|000004a0| 20 50 49 43 54 2c 20 77 | 68 65 72 65 61 73 2c 20 | PICT, w|hereas, |
|000004b0| 77 68 65 6e 20 79 6f 75 | 20 70 72 69 6e 74 0d 6f |when you| print.o|
|000004c0| 6e 20 61 20 4c 61 73 65 | 72 57 72 69 74 65 72 2c |n a Lase|rWriter,|
|000004d0| 20 74 68 65 20 69 6d 61 | 67 65 20 69 73 20 70 72 | the ima|ge is pr|
|000004e0| 6f 64 75 63 65 64 20 62 | 79 20 74 68 65 20 50 6f |oduced b|y the Po|
|000004f0| 73 74 53 63 72 69 70 74 | 20 63 6f 64 65 2e 20 57 |stScript| code. W|
|00000500| 68 65 6e 20 69 6e 20 79 | 6f 75 72 20 77 6f 72 64 |hen in y|our word|
|00000510| 0d 70 72 6f 63 65 73 73 | 6f 72 2c 20 74 68 65 20 |.process|or, the |
|00000520| 6f 6e 2d 73 63 72 65 65 | 6e 20 69 6d 61 67 65 73 |on-scree|n images|
|00000530| 20 77 69 6c 6c 20 6c 6f | 6f 6b 20 62 65 73 74 20 | will lo|ok best |
|00000540| 69 66 20 79 6f 75 20 75 | 73 65 20 74 68 65 20 4d |if you u|se the M|
|00000550| 6f 6e 69 74 6f 72 73 20 | 63 6f 6e 74 72 6f 6c 0d |onitors |control.|
|00000560| 70 61 6e 65 6c 20 74 6f | 20 73 65 74 20 79 6f 75 |panel to| set you|
|00000570| 72 20 6d 6f 6e 69 74 6f | 72 20 74 6f 20 32 35 36 |r monito|r to 256|
|00000580| 20 47 72 61 79 73 2c 20 | 62 75 74 20 74 68 69 73 | Grays, |but this|
|00000590| 20 77 6f 6e 27 74 20 61 | 66 66 65 63 74 20 70 72 | won't a|ffect pr|
|000005a0| 69 6e 74 69 6e 67 2e 0d | 0d 54 68 65 20 66 69 6c |inting..|.The fil|
|000005b0| 65 6e 61 6d 65 2c 20 62 | 79 20 63 6f 6e 76 65 6e |ename, b|y conven|
|000005c0| 74 69 6f 6e 2c 20 73 68 | 6f 75 6c 64 20 65 6e 64 |tion, sh|ould end|
|000005d0| 20 69 6e 20 22 2e 65 70 | 73 22 20 74 6f 20 69 6e | in ".ep|s" to in|
|000005e0| 64 69 63 61 74 65 20 74 | 68 61 74 20 69 74 27 73 |dicate t|hat it's|
|000005f0| 20 61 6e 0d 65 6e 63 61 | 70 73 75 6c 61 74 65 64 | an.enca|psulated|
|00000600| 20 70 6f 73 74 73 63 72 | 69 70 74 20 66 69 6c 65 | postscr|ipt file|
|00000610| 2c 20 62 75 74 20 74 68 | 69 73 20 69 73 20 6e 6f |, but th|is is no|
|00000620| 74 20 65 6e 66 6f 72 63 | 65 64 2e 20 54 68 65 20 |t enforc|ed. The |
|00000630| 66 69 6c 65 27 73 20 74 | 79 70 65 20 69 73 20 73 |file's t|ype is s|
|00000640| 65 74 20 74 6f 0d 27 45 | 50 53 46 27 20 77 69 74 |et to.'E|PSF' wit|
|00000650| 68 20 63 72 65 61 74 6f | 72 20 27 52 2a 63 68 27 |h creato|r 'R*ch'|
|00000660| 2e 20 28 54 68 69 73 20 | 63 72 65 61 74 6f 72 20 |. (This |creator |
|00000670| 63 6f 72 72 65 73 70 6f | 6e 64 73 20 74 6f 20 42 |correspo|nds to B|
|00000680| 42 45 64 69 74 2c 20 73 | 6f 0d 64 6f 75 62 6c 65 |BEdit, s|o.double|
|00000690| 2d 63 6c 69 63 6b 69 6e | 67 20 77 69 6c 6c 20 6f |-clickin|g will o|
|000006a0| 70 65 6e 20 69 74 20 61 | 73 20 61 20 74 65 78 74 |pen it a|s a text|
|000006b0| 20 66 69 6c 65 20 69 6e | 20 42 42 45 64 69 74 2c | file in| BBEdit,|
|000006c0| 20 77 68 69 63 68 20 69 | 6e 63 6c 75 64 65 73 20 | which i|ncludes |
|000006d0| 61 0d 53 70 65 63 69 61 | 6c 3a 53 65 6e 64 50 6f |a.Specia|l:SendPo|
|000006e0| 73 74 53 63 72 69 70 74 | 20 63 6f 6d 6d 61 6e 64 |stScript| command|
|000006f0| 20 66 6f 72 20 64 6f 77 | 6e 6c 6f 61 64 69 6e 67 | for dow|nloading|
|00000700| 20 70 6f 73 63 72 69 70 | 74 20 69 6d 61 67 65 73 | poscrip|t images|
|00000710| 20 74 6f 20 74 68 65 0d | 6c 61 73 65 72 77 72 69 | to the.|laserwri|
|00000720| 74 65 72 2e 20 59 6f 75 | 20 63 61 6e 20 63 68 61 |ter. You| can cha|
|00000730| 6e 67 65 20 74 68 65 20 | 63 72 65 61 74 6f 72 20 |nge the |creator |
|00000740| 74 6f 20 62 65 20 61 6e | 79 74 68 69 6e 67 20 79 |to be an|ything y|
|00000750| 6f 75 20 77 61 6e 74 2e | 29 0d 0d 54 68 65 20 73 |ou want.|)..The s|
|00000760| 75 70 70 6c 69 65 64 20 | 50 69 78 4d 61 70 20 6d |upplied |PixMap m|
|00000770| 75 73 74 20 68 61 76 65 | 20 38 20 62 69 74 73 20 |ust have| 8 bits |
|00000780| 70 65 72 20 70 69 78 65 | 6c 2e 20 54 68 65 20 77 |per pixe|l. The w|
|00000790| 69 6e 64 6f 77 27 73 20 | 63 6f 6c 6f 72 20 74 61 |indow's |color ta|
|000007a0| 62 6c 65 20 69 73 0d 69 | 67 6e 6f 72 65 64 2e 20 |ble is.i|gnored. |
|000007b0| 54 68 65 20 72 61 77 20 | 70 69 78 65 6c 20 76 61 |The raw |pixel va|
|000007c0| 6c 75 65 20 28 77 68 69 | 63 68 20 41 70 70 6c 65 |lue (whi|ch Apple|
|000007d0| 20 63 61 6c 6c 73 20 61 | 6e 20 22 69 6e 64 65 78 | calls a|n "index|
|000007e0| 22 29 20 69 73 20 74 72 | 61 6e 73 66 6f 72 6d 65 |") is tr|ansforme|
|000007f0| 64 20 62 79 20 74 68 65 | 0d 6f 70 74 69 6f 6e 61 |d by the|.optiona|
|00000800| 6c 20 72 65 66 6c 65 63 | 74 61 6e 63 65 20 61 72 |l reflec|tance ar|
|00000810| 72 61 79 20 28 69 66 20 | 70 72 65 73 65 6e 74 29 |ray (if |present)|
|00000820| 2c 20 61 6e 64 20 74 68 | 65 6e 20 73 65 6e 74 20 |, and th|en sent |
|00000830| 64 69 72 65 63 74 6c 79 | 20 74 6f 20 74 68 65 20 |directly| to the |
|00000840| 70 72 69 6e 74 65 72 2e | 0d 49 66 20 22 72 65 66 |printer.|.If "ref|
|00000850| 6c 65 63 74 61 6e 63 65 | 22 20 69 73 20 4e 55 4c |lectance|" is NUL|
|00000860| 4c 2c 20 74 68 65 6e 20 | 74 68 65 20 70 69 78 65 |L, then |the pixe|
|00000870| 6c 20 76 61 6c 75 65 2c | 20 66 72 6f 6d 20 30 20 |l value,| from 0 |
|00000880| 74 6f 20 32 35 35 20 69 | 73 20 69 6e 74 65 72 70 |to 255 i|s interp|
|00000890| 72 65 74 65 64 20 62 79 | 0d 50 6f 73 74 53 63 72 |reted by|.PostScr|
|000008a0| 69 70 74 20 61 73 20 70 | 72 6f 70 6f 72 74 69 6f |ipt as p|roportio|
|000008b0| 6e 61 6c 20 74 6f 20 64 | 65 73 69 72 65 64 20 72 |nal to d|esired r|
|000008c0| 65 66 6c 65 63 74 61 6e | 63 65 2c 20 66 72 6f 6d |eflectan|ce, from|
|000008d0| 20 7a 65 72 6f 20 74 6f | 20 31 2e 20 49 66 20 79 | zero to| 1. If y|
|000008e0| 6f 75 20 73 75 70 70 6c | 79 0d 61 20 22 72 65 66 |ou suppl|y.a "ref|
|000008f0| 6c 65 63 74 61 6e 63 65 | 22 20 61 72 72 61 79 20 |lectance|" array |
|00000900| 74 68 65 20 76 61 6c 75 | 65 73 20 73 68 6f 75 6c |the valu|es shoul|
|00000910| 64 20 72 61 6e 67 65 20 | 66 72 6f 6d 20 30 2e 30 |d range |from 0.0|
|00000920| 20 74 6f 20 31 2e 30 2e | 20 54 68 65 20 2a 72 65 | to 1.0.| The *re|
|00000930| 63 74 50 74 72 0d 69 6e | 64 69 63 61 74 65 73 20 |ctPtr.in|dicates |
|00000940| 77 68 61 74 20 70 61 72 | 74 20 6f 66 20 79 6f 75 |what par|t of you|
|00000950| 72 20 50 69 78 4d 61 70 | 20 69 73 20 74 6f 20 62 |r PixMap| is to b|
|00000960| 65 20 75 73 65 64 2e 0d | 0d 54 68 65 20 63 6f 6c |e used..|.The col|
|00000970| 6f 72 20 74 61 62 6c 65 | 20 61 74 74 61 63 68 65 |or table| attache|
|00000980| 64 20 74 6f 20 74 68 65 | 20 50 49 43 54 20 72 65 |d to the| PICT re|
|00000990| 73 6f 75 72 63 65 2c 20 | 77 68 69 63 68 20 70 72 |source, |which pr|
|000009a0| 6f 76 69 64 65 73 20 74 | 68 65 20 6f 6e 2d 73 63 |ovides t|he on-sc|
|000009b0| 72 65 65 6e 20 70 72 65 | 76 69 65 77 0d 69 6e 20 |reen pre|view.in |
|000009c0| 77 6f 72 64 20 70 72 6f | 63 65 73 73 6f 72 73 2c |word pro|cessors,|
|000009d0| 20 69 73 20 63 72 65 61 | 74 65 64 20 74 6f 20 6d | is crea|ted to m|
|000009e0| 61 74 63 68 20 74 68 65 | 20 50 6f 73 74 53 63 72 |atch the| PostScr|
|000009f0| 69 70 74 20 6f 6e 65 2c | 20 75 73 69 6e 67 20 74 |ipt one,| using t|
|00000a00| 68 65 20 72 65 66 6c 65 | 63 74 61 6e 63 65 0d 61 |he refle|ctance.a|
|00000a10| 72 72 61 79 20 69 66 20 | 73 75 70 70 6c 69 65 64 |rray if |supplied|
|00000a20| 2c 20 6f 74 68 65 72 77 | 69 73 65 20 63 72 65 61 |, otherw|ise crea|
|00000a30| 74 69 6e 67 20 61 20 67 | 72 61 79 20 63 6f 6c 6f |ting a g|ray colo|
|00000a40| 72 20 74 61 62 6c 65 20 | 72 75 6e 6e 69 6e 67 20 |r table |running |
|00000a50| 66 72 6f 6d 20 62 6c 61 | 63 6b 20 74 6f 20 77 68 |from bla|ck to wh|
|00000a60| 69 74 65 2e 0d 0d 54 68 | 65 20 2a 70 61 67 65 52 |ite...Th|e *pageR|
|00000a70| 65 63 74 50 74 72 20 69 | 73 20 73 75 62 74 6c 65 |ectPtr i|s subtle|
|00000a80| 2e 20 49 74 20 64 65 73 | 63 72 69 62 65 73 2c 20 |. It des|cribes, |
|00000a90| 69 6e 20 74 79 70 6f 67 | 72 61 70 68 65 72 73 20 |in typog|raphers |
|00000aa0| 70 6f 69 6e 74 73 20 28 | 31 2f 37 32 22 29 2c 20 |points (|1/72"), |
|00000ab0| 74 68 65 0d 72 65 63 74 | 61 6e 67 6c 65 20 74 68 |the.rect|angle th|
|00000ac0| 61 74 20 79 6f 75 72 20 | 69 6d 61 67 65 20 77 69 |at your |image wi|
|00000ad0| 6c 6c 20 62 65 20 6d 61 | 70 70 65 64 20 6f 6e 74 |ll be ma|pped ont|
|00000ae0| 6f 20 6f 6e 20 74 68 65 | 20 70 72 69 6e 74 65 64 |o on the| printed|
|00000af0| 20 70 61 67 65 2e 20 49 | 74 20 69 73 0d 65 73 73 | page. I|t is.ess|
|00000b00| 65 6e 74 69 61 6c 20 74 | 68 61 74 20 79 6f 75 20 |ential t|hat you |
|00000b10| 6b 65 65 70 20 69 6e 20 | 6d 69 6e 64 20 74 68 61 |keep in |mind tha|
|00000b20| 74 20 41 70 70 6c 65 20 | 61 6e 64 20 41 64 6f 62 |t Apple |and Adob|
|00000b30| 65 20 75 73 65 20 64 69 | 66 66 65 72 65 6e 74 20 |e use di|fferent |
|00000b40| 63 6f 6f 72 64 69 6e 61 | 74 65 0d 73 79 73 74 65 |coordina|te.syste|
|00000b50| 6d 73 2e 20 42 6f 74 68 | 20 41 70 70 6c 65 20 61 |ms. Both| Apple a|
|00000b60| 6e 64 20 41 64 6f 62 65 | 20 69 6e 63 72 65 61 73 |nd Adobe| increas|
|00000b70| 65 20 78 20 66 72 6f 6d | 20 6c 65 66 74 20 74 6f |e x from| left to|
|00000b80| 20 72 69 67 68 74 2e 20 | 48 6f 77 65 76 65 72 2c | right. |However,|
|00000b90| 20 41 70 70 6c 65 20 68 | 61 73 20 79 0d 69 6e 63 | Apple h|as y.inc|
|00000ba0| 72 65 61 73 69 6e 67 20 | 66 72 6f 6d 20 74 6f 70 |reasing |from top|
|00000bb0| 20 74 6f 20 62 6f 74 74 | 6f 6d 2c 20 77 68 65 72 | to bott|om, wher|
|00000bc0| 65 61 73 20 41 64 6f 62 | 65 20 69 6e 63 72 65 61 |eas Adob|e increa|
|00000bd0| 73 65 73 20 79 20 66 72 | 6f 6d 20 62 6f 74 74 6f |ses y fr|om botto|
|00000be0| 6d 20 74 6f 20 74 6f 70 | 2e 0d 41 64 6f 62 65 27 |m to top|..Adobe'|
|00000bf0| 73 20 6f 72 69 67 69 6e | 20 69 73 20 74 68 65 20 |s origin| is the |
|00000c00| 6c 6f 77 65 72 20 6c 65 | 66 74 20 63 6f 72 6e 65 |lower le|ft corne|
|00000c10| 72 20 6f 66 20 74 68 65 | 20 70 61 67 65 2c 20 65 |r of the| page, e|
|00000c20| 76 65 6e 20 74 68 6f 75 | 67 68 20 74 68 61 74 20 |ven thou|gh that |
|00000c30| 70 6f 69 6e 74 20 69 73 | 0d 75 73 75 61 6c 6c 79 |point is|.usually|
|00000c40| 20 6e 6f 74 20 70 72 69 | 6e 74 61 62 6c 65 2c 20 | not pri|ntable, |
|00000c50| 73 69 6e 63 65 20 6d 6f | 73 74 20 70 72 69 6e 74 |since mo|st print|
|00000c60| 65 72 73 20 63 61 6e 20 | 6f 6e 6c 79 20 70 72 69 |ers can |only pri|
|00000c70| 6e 74 20 74 6f 20 77 69 | 74 68 69 6e 20 61 62 6f |nt to wi|thin abo|
|00000c80| 75 74 20 61 20 68 61 6c | 66 0d 69 6e 63 68 20 6f |ut a hal|f.inch o|
|00000c90| 66 20 74 68 65 20 65 64 | 67 65 2e 20 54 68 65 20 |f the ed|ge. The |
|00000ca0| 70 61 67 65 52 65 63 74 | 2c 20 74 68 6f 75 67 68 |pageRect|, though|
|00000cb0| 20 73 75 70 70 6c 69 65 | 64 20 69 6e 20 41 70 70 | supplie|d in App|
|00000cc0| 6c 65 27 73 20 52 65 63 | 74 20 64 61 74 61 20 73 |le's Rec|t data s|
|00000cd0| 74 72 75 63 74 75 72 65 | 2c 0d 6d 75 73 74 20 62 |tructure|,.must b|
|00000ce0| 65 20 69 6e 20 41 64 6f | 62 65 27 73 20 63 6f 6f |e in Ado|be's coo|
|00000cf0| 72 64 69 6e 61 74 65 73 | 2c 20 72 65 73 70 65 63 |rdinates|, respec|
|00000d00| 74 69 6e 67 20 74 68 65 | 20 6e 61 6d 65 73 20 6f |ting the| names o|
|00000d10| 66 20 74 68 65 20 52 65 | 63 74 20 73 74 72 75 63 |f the Re|ct struc|
|00000d20| 74 75 72 65 27 73 0d 66 | 69 65 6c 64 73 3a 20 6c |ture's.f|ields: l|
|00000d30| 65 66 74 2c 20 74 6f 70 | 2c 20 72 69 67 68 74 2c |eft, top|, right,|
|00000d40| 20 62 6f 74 74 6f 6d 2e | 20 53 6f 2c 20 66 6f 72 | bottom.| So, for|
|00000d50| 20 61 6e 20 69 6d 61 67 | 65 20 74 6f 20 66 69 6c | an imag|e to fil|
|00000d60| 6c 20 6d 6f 73 74 20 6f | 66 20 61 6e 20 38 2e 35 |l most o|f an 8.5|
|00000d70| 78 31 31 0d 70 61 67 65 | 2c 20 77 69 74 68 20 30 |x11.page|, with 0|
|00000d80| 2e 35 22 20 6d 61 72 67 | 69 6e 73 2c 20 79 6f 75 |.5" marg|ins, you|
|00000d90| 20 6d 69 67 68 74 20 75 | 73 65 20 74 68 65 20 66 | might u|se the f|
|00000da0| 6f 6c 6c 6f 77 69 6e 67 | 3a 0d 0d 09 09 53 65 74 |ollowing|:....Set|
|00000db0| 52 65 63 74 28 26 70 61 | 67 65 52 65 63 74 2c 30 |Rect(&pa|geRect,0|
|00000dc0| 2e 35 2a 37 32 2c 31 30 | 2e 35 2a 37 32 2c 38 2a |.5*72,10|.5*72,8*|
|00000dd0| 37 32 2c 30 2e 35 2a 37 | 32 29 3b 0d 0d 49 6e 20 |72,0.5*7|2);..In |
|00000de0| 70 72 69 6e 74 69 6e 67 | 20 50 6f 73 74 53 63 72 |printing| PostScr|
|00000df0| 69 70 74 20 68 61 6c 66 | 74 6f 6e 65 73 20 74 68 |ipt half|tones th|
|00000e00| 65 20 68 61 6c 66 74 6f | 6e 65 20 63 65 6c 6c 20 |e halfto|ne cell |
|00000e10| 73 69 7a 65 20 64 65 74 | 65 72 6d 69 6e 65 73 0d |size det|ermines.|
|00000e20| 62 6f 74 68 20 74 68 65 | 20 73 70 61 74 69 61 6c |both the| spatial|
|00000e30| 20 61 6e 64 20 67 72 61 | 79 6c 65 76 65 6c 20 72 | and gra|ylevel r|
|00000e40| 65 73 6f 6c 75 74 69 6f | 6e 73 20 6f 66 20 74 68 |esolutio|ns of th|
|00000e50| 65 20 72 65 73 75 6c 74 | 69 6e 67 20 69 6d 61 67 |e result|ing imag|
|00000e60| 65 2e 20 46 6f 72 0d 74 | 68 65 20 63 6f 6e 76 65 |e. For.t|he conve|
|00000e70| 6e 69 65 6e 63 65 20 6f | 66 20 74 68 65 20 75 73 |nience o|f the us|
|00000e80| 65 72 20 74 68 69 73 20 | 63 61 6e 20 62 65 20 73 |er this |can be s|
|00000e90| 70 65 63 69 66 69 65 64 | 20 62 79 20 73 65 74 74 |pecified| by sett|
|00000ea0| 69 6e 67 20 65 69 74 68 | 65 72 20 74 68 65 0d 63 |ing eith|er the.c|
|00000eb0| 65 6c 6c 73 50 65 72 49 | 6e 63 68 20 6f 72 20 74 |ellsPerI|nch or t|
|00000ec0| 68 65 20 67 72 61 79 4c | 65 76 65 6c 73 20 61 72 |he grayL|evels ar|
|00000ed0| 67 75 6d 65 6e 74 20 74 | 6f 20 74 68 65 20 64 65 |gument t|o the de|
|00000ee0| 73 69 72 65 64 20 76 61 | 6c 75 65 3b 20 74 68 65 |sired va|lue; the|
|00000ef0| 20 6f 74 68 65 72 0d 6f | 6e 65 20 73 68 6f 75 6c | other.o|ne shoul|
|00000f00| 64 20 62 65 20 7a 65 72 | 6f 2e 20 49 66 20 62 6f |d be zer|o. If bo|
|00000f10| 74 68 20 61 72 65 20 7a | 65 72 6f 20 74 68 65 6e |th are z|ero then|
|00000f20| 20 74 68 65 20 70 72 69 | 6e 74 65 72 20 77 69 6c | the pri|nter wil|
|00000f30| 6c 20 62 65 20 6c 65 66 | 74 20 61 74 0d 69 74 73 |l be lef|t at.its|
|00000f40| 20 64 65 66 61 75 6c 74 | 20 63 65 6c 6c 20 73 69 | default| cell si|
|00000f50| 7a 65 2c 20 77 68 69 63 | 68 20 69 73 20 75 73 75 |ze, whic|h is usu|
|00000f60| 61 6c 6c 79 20 61 20 67 | 6f 6f 64 20 63 68 6f 69 |ally a g|ood choi|
|00000f70| 63 65 2e 20 4e 6f 74 65 | 20 74 68 61 74 20 74 68 |ce. Note| that th|
|00000f80| 65 72 65 0d 6e 65 65 64 | 20 6e 6f 74 20 62 65 20 |ere.need| not be |
|00000f90| 61 6e 79 20 70 61 72 74 | 69 63 75 6c 61 72 20 63 |any part|icular c|
|00000fa0| 6f 72 72 65 73 70 6f 6e | 64 65 6e 63 65 20 62 65 |orrespon|dence be|
|00000fb0| 74 77 65 65 6e 20 70 69 | 78 65 6c 73 20 69 6e 20 |tween pi|xels in |
|00000fc0| 79 6f 75 72 20 69 6d 61 | 67 65 0d 61 6e 64 20 63 |your ima|ge.and c|
|00000fd0| 65 6c 6c 73 20 69 6e 20 | 74 68 65 20 68 61 6c 66 |ells in |the half|
|00000fe0| 74 6f 6e 65 3b 20 74 68 | 65 20 70 72 69 6e 74 65 |tone; th|e printe|
|00000ff0| 72 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |r automa|tically |
|00001000| 72 65 73 61 6d 70 6c 65 | 73 20 79 6f 75 72 0d 69 |resample|s your.i|
|00001010| 6d 61 67 65 20 74 6f 20 | 70 72 6f 64 75 63 65 20 |mage to |produce |
|00001020| 74 68 65 20 68 61 6c 66 | 74 6f 6e 65 2e 0d 0d 49 |the half|tone...I|
|00001030| 66 20 79 6f 75 20 73 65 | 74 20 63 65 6c 6c 73 50 |f you se|t cellsP|
|00001040| 65 72 49 6e 63 68 20 74 | 6f 20 61 20 6e 6f 6e 7a |erInch t|o a nonz|
|00001050| 65 72 6f 20 76 61 6c 75 | 65 20 74 68 65 6e 20 74 |ero valu|e then t|
|00001060| 68 65 20 70 72 69 6e 74 | 65 72 20 77 69 6c 6c 20 |he print|er will |
|00001070| 62 65 0d 61 73 6b 65 64 | 20 74 6f 20 70 72 69 6e |be.asked| to prin|
|00001080| 74 20 69 74 73 20 68 61 | 6c 66 74 6f 6e 65 20 77 |t its ha|lftone w|
|00001090| 69 74 68 20 74 68 61 74 | 20 6d 61 6e 79 20 68 61 |ith that| many ha|
|000010a0| 6c 66 74 6f 6e 65 20 63 | 65 6c 6c 73 20 70 65 72 |lftone c|ells per|
|000010b0| 20 69 6e 63 68 2e 20 45 | 2e 67 2e 0d 74 6f 20 70 | inch. E|.g..to p|
|000010c0| 72 6f 64 75 63 65 20 61 | 20 68 61 6c 66 74 6f 6e |roduce a| halfton|
|000010d0| 65 20 6f 72 69 67 69 6e | 61 6c 20 66 6f 72 20 73 |e origin|al for s|
|000010e0| 75 62 73 65 71 75 65 6e | 74 20 6f 6e 65 2d 74 6f |ubsequen|t one-to|
|000010f0| 2d 6f 6e 65 20 72 65 70 | 72 6f 64 75 63 74 69 6f |-one rep|roductio|
|00001100| 6e 20 69 6e 0d 61 20 6a | 6f 75 72 6e 61 6c 2c 20 |n in.a j|ournal, |
|00001110| 79 6f 75 27 6c 6c 20 77 | 61 6e 74 20 74 68 65 20 |you'll w|ant the |
|00001120| 63 65 6c 6c 73 20 74 6f | 20 62 65 20 63 6f 61 72 |cells to| be coar|
|00001130| 73 65 20 65 6e 6f 75 67 | 68 20 66 6f 72 20 74 68 |se enoug|h for th|
|00001140| 65 6d 20 74 6f 0d 72 65 | 70 72 6f 64 75 63 65 20 |em to.re|produce |
|00001150| 77 69 74 68 6f 75 74 20 | 72 65 2d 73 63 72 65 65 |without |re-scree|
|00001160| 6e 69 6e 67 2c 20 65 2e | 67 2e 20 31 30 30 20 63 |ning, e.|g. 100 c|
|00001170| 65 6c 6c 73 20 70 65 72 | 20 69 6e 63 68 2e 0d 0d |ells per| inch...|
|00001180| 41 6c 74 65 72 6e 61 74 | 69 76 65 6c 79 2c 20 69 |Alternat|ively, i|
|00001190| 66 20 79 6f 75 20 73 65 | 74 20 67 72 61 79 4c 65 |f you se|t grayLe|
|000011a0| 76 65 6c 73 20 74 6f 20 | 61 20 6e 6f 6e 7a 65 72 |vels to |a nonzer|
|000011b0| 6f 20 76 61 6c 75 65 20 | 74 68 65 6e 20 74 68 65 |o value |then the|
|000011c0| 0d 70 72 69 6e 74 65 72 | 20 77 69 6c 6c 20 62 65 |.printer| will be|
|000011d0| 20 61 73 6b 65 64 20 74 | 6f 20 70 72 69 6e 74 20 | asked t|o print |
|000011e0| 69 74 73 20 68 61 6c 66 | 74 6f 6e 65 20 77 69 74 |its half|tone wit|
|000011f0| 68 20 63 65 6c 6c 73 20 | 63 6f 6e 74 61 69 6e 69 |h cells |containi|
|00001200| 6e 67 0d 67 72 61 79 4c | 65 76 65 6c 73 2d 31 20 |ng.grayL|evels-1 |
|00001210| 70 72 69 6e 74 65 72 20 | 70 69 78 65 6c 73 2c 20 |printer |pixels, |
|00001220| 79 69 65 6c 64 69 6e 67 | 20 74 68 65 20 73 70 65 |yielding| the spe|
|00001230| 63 69 66 69 65 64 20 6e | 75 6d 62 65 72 20 6f 66 |cified n|umber of|
|00001240| 20 67 72 61 79 0d 6c 65 | 76 65 6c 73 2e 20 45 2e | gray.le|vels. E.|
|00001250| 67 2e 20 79 6f 75 20 6d | 69 67 68 74 20 77 61 6e |g. you m|ight wan|
|00001260| 74 20 74 6f 20 66 6f 72 | 63 65 20 79 6f 75 72 20 |t to for|ce your |
|00001270| 33 30 30 20 64 70 69 20 | 4c 61 73 65 72 57 72 69 |300 dpi |LaserWri|
|00001280| 74 65 72 20 74 6f 20 75 | 73 65 20 62 69 67 0d 63 |ter to u|se big.c|
|00001290| 65 6c 6c 73 20 79 69 65 | 6c 64 69 6e 67 20 32 35 |ells yie|lding 25|
|000012a0| 36 20 67 72 61 79 20 6c | 65 76 65 6c 73 2e 0d 0d |6 gray l|evels...|
|000012b0| 48 65 72 65 27 73 20 61 | 20 6d 69 6e 69 6d 61 6c |Here's a| minimal|
|000012c0| 20 65 78 61 6d 70 6c 65 | 3a 0d 0d 09 09 57 69 6e | example|:....Win|
|000012d0| 64 6f 77 54 6f 45 50 53 | 28 77 69 6e 64 6f 77 2c |dowToEPS|(window,|
|000012e0| 22 74 65 73 74 2e 65 70 | 73 22 2c 26 72 65 63 74 |"test.ep|s",&rect|
|000012f0| 2c 26 70 61 67 65 52 65 | 63 74 2c 30 2e 30 2c 30 |,&pageRe|ct,0.0,0|
|00001300| 2c 4e 55 4c 4c 29 3b 0d | 0d 09 54 6f 20 70 72 69 |,NULL);.|..To pri|
|00001310| 6e 74 20 61 20 73 63 72 | 65 65 6e 20 74 6f 20 64 |nt a scr|een to d|
|00001320| 69 73 6b 2c 20 70 72 65 | 73 65 72 76 69 6e 67 20 |isk, pre|serving |
|00001330| 74 68 65 20 73 69 7a 65 | 20 61 6e 64 20 73 63 61 |the size| and sca|
|00001340| 6c 65 20 6f 66 20 74 68 | 65 0d 69 6d 61 67 65 2c |le of th|e.image,|
|00001350| 20 74 72 79 20 74 68 69 | 73 3a 0d 0d 09 09 70 61 | try thi|s:....pa|
|00001360| 67 65 52 65 63 74 3d 77 | 69 6e 64 6f 77 2d 3e 70 |geRect=w|indow->p|
|00001370| 6f 72 74 52 65 63 74 3b | 0d 09 09 70 61 67 65 52 |ortRect;|...pageR|
|00001380| 65 63 74 2e 74 6f 70 2a | 3d 2d 31 3b 09 09 2f 2f |ect.top*|=-1;..//|
|00001390| 20 63 6f 6e 76 65 72 74 | 20 66 72 6f 6d 20 41 70 | convert| from Ap|
|000013a0| 70 6c 65 20 74 6f 20 41 | 64 6f 62 65 20 63 6f 6f |ple to A|dobe coo|
|000013b0| 72 64 69 6e 61 74 65 73 | 0d 09 09 70 61 67 65 52 |rdinates|...pageR|
|000013c0| 65 63 74 2e 62 6f 74 74 | 6f 6d 2a 3d 2d 31 3b 09 |ect.bott|om*=-1;.|
|000013d0| 2f 2f 20 63 6f 6e 76 65 | 72 74 20 66 72 6f 6d 20 |// conve|rt from |
|000013e0| 41 70 70 6c 65 20 74 6f | 20 41 64 6f 62 65 20 63 |Apple to| Adobe c|
|000013f0| 6f 6f 72 64 69 6e 61 74 | 65 73 0d 09 09 53 65 74 |oordinat|es...Set|
|00001400| 52 65 63 74 28 26 70 61 | 70 65 72 52 65 63 74 2c |Rect(&pa|perRect,|
|00001410| 30 2c 31 31 2a 37 32 2c | 38 2e 35 2a 37 32 2c 30 |0,11*72,|8.5*72,0|
|00001420| 29 3b 0d 09 09 43 65 6e | 74 65 72 52 65 63 74 49 |);...Cen|terRectI|
|00001430| 6e 52 65 63 74 28 26 70 | 61 67 65 52 65 63 74 2c |nRect(&p|ageRect,|
|00001440| 26 70 61 70 65 72 52 65 | 63 74 29 3b 0d 09 09 57 |&paperRe|ct);...W|
|00001450| 69 6e 64 6f 77 54 6f 45 | 50 53 28 77 69 6e 64 6f |indowToE|PS(windo|
|00001460| 77 2c 22 74 65 73 74 2e | 65 70 73 22 2c 26 77 69 |w,"test.|eps",&wi|
|00001470| 6e 64 6f 77 2d 3e 70 6f | 72 74 52 65 63 74 2c 26 |ndow->po|rtRect,&|
|00001480| 70 61 67 65 52 65 63 74 | 2c 30 2c 30 2c 4e 55 4c |pageRect|,0,0,NUL|
|00001490| 4c 29 3b 0d 0d 09 54 69 | 6c 69 6e 67 20 69 73 20 |L);...Ti|ling is |
|000014a0| 73 6f 6d 65 74 68 69 6e | 67 20 77 65 20 6f 66 74 |somethin|g we oft|
|000014b0| 65 6e 20 77 61 6e 74 20 | 74 6f 20 64 6f 2c 20 63 |en want |to do, c|
|000014c0| 72 65 61 74 69 6e 67 20 | 61 20 68 75 67 65 20 69 |reating |a huge i|
|000014d0| 6d 61 67 65 20 62 79 0d | 74 61 70 69 6e 67 20 6d |mage by.|taping m|
|000014e0| 61 6e 79 20 70 61 67 65 | 73 20 74 6f 67 65 74 68 |any page|s togeth|
|000014f0| 65 72 2e 20 53 69 6d 70 | 6c 79 20 69 6d 70 6f 72 |er. Simp|ly impor|
|00001500| 74 20 79 6f 75 72 20 45 | 50 53 20 66 69 6c 65 20 |t your E|PS file |
|00001510| 69 6e 74 6f 20 61 20 67 | 6f 6f 64 0d 67 72 61 70 |into a g|ood.grap|
|00001520| 68 69 63 73 20 70 72 6f | 67 72 61 6d 2c 20 65 2e |hics pro|gram, e.|
|00001530| 67 2e 20 50 61 67 65 4d | 61 6b 65 72 2c 20 61 6e |g. PageM|aker, an|
|00001540| 64 20 70 72 69 6e 74 20 | 77 69 74 68 20 74 69 6c |d print |with til|
|00001550| 69 6e 67 2e 0d 0d 52 45 | 46 45 52 45 4e 43 45 53 |ing...RE|FERENCES|
|00001560| 0d 0d 41 64 6f 62 65 20 | 53 79 73 74 65 6d 73 20 |..Adobe |Systems |
|00001570| 28 31 39 38 35 29 20 50 | 6f 73 74 53 63 72 69 70 |(1985) P|ostScrip|
|00001580| 74 20 4c 61 6e 67 75 61 | 67 65 20 52 65 66 65 72 |t Langua|ge Refer|
|00001590| 65 6e 63 65 20 4d 61 6e | 75 61 6c 2c 20 53 65 63 |ence Man|ual, Sec|
|000015a0| 6f 6e 64 20 45 64 69 74 | 69 6f 6e 2e 20 0d 52 65 |ond Edit|ion. .Re|
|000015b0| 61 64 69 6e 67 2c 20 4d | 41 3a 20 41 64 64 69 73 |ading, M|A: Addis|
|000015c0| 6f 6e 2d 57 65 73 6c 65 | 79 2e 0d 0d 50 65 6c 6c |on-Wesle|y...Pell|
|000015d0| 69 2c 20 44 2e 20 47 2e | 20 28 31 39 38 37 29 20 |i, D. G.| (1987) |
|000015e0| 50 72 6f 67 72 61 6d 6d | 69 6e 67 20 69 6e 20 50 |Programm|ing in P|
|000015f0| 6f 73 74 53 63 72 69 70 | 74 3a 20 49 6d 61 67 69 |ostScrip|t: Imagi|
|00001600| 6e 67 20 6f 6e 20 70 61 | 70 65 72 20 66 72 6f 6d |ng on pa|per from|
|00001610| 20 61 20 6d 61 74 68 65 | 6d 61 74 69 63 61 6c 0d | a mathe|matical.|
|00001620| 64 65 73 63 72 69 70 74 | 69 6f 6e 2e 20 42 59 54 |descript|ion. BYT|
|00001630| 45 2c 20 31 32 20 28 35 | 29 2c 20 31 38 35 2d 32 |E, 12 (5|), 185-2|
|00001640| 30 32 2e 0d 0d 48 49 53 | 54 4f 52 59 3a 0d 34 2f |02...HIS|TORY:.4/|
|00001650| 32 31 2f 39 31 09 64 67 | 70 09 77 72 6f 74 65 20 |21/91.dg|p.wrote |
|00001660| 69 74 0d 37 2f 32 34 2f | 39 31 20 64 67 70 20 61 |it.7/24/|91 dgp a|
|00001670| 64 64 65 64 20 63 6f 6d | 6d 65 6e 74 20 61 62 6f |dded com|ment abo|
|00001680| 75 74 20 73 68 69 66 74 | 69 6e 67 20 70 61 67 65 |ut shift|ing page|
|00001690| 52 65 63 74 0d 38 2f 32 | 34 2f 39 31 09 64 67 70 |Rect.8/2|4/91.dgp|
|000016a0| 09 4d 61 64 65 20 63 6f | 6d 70 61 74 69 62 6c 65 |.Made co|mpatible|
|000016b0| 20 77 69 74 68 20 54 48 | 49 4e 4b 20 43 20 35 2e | with TH|INK C 5.|
|000016c0| 30 0d 31 32 2f 37 2f 39 | 31 09 64 67 70 09 6d 69 |0.12/7/9|1.dgp.mi|
|000016d0| 6e 6f 72 20 65 64 69 74 | 69 6e 67 20 6f 66 20 63 |nor edit|ing of c|
|000016e0| 6f 6d 6d 65 6e 74 73 0d | 31 30 2f 31 30 2f 39 32 |omments.|10/10/92|
|000016f0| 20 64 67 70 20 41 64 64 | 65 64 20 73 75 70 70 6f | dgp Add|ed suppo|
|00001700| 72 74 20 66 6f 72 20 50 | 69 78 6d 61 70 27 73 20 |rt for P|ixmap's |
|00001710| 74 68 61 74 20 72 65 71 | 75 69 72 65 20 33 32 2d |that req|uire 32-|
|00001720| 62 69 74 20 61 64 64 72 | 65 73 73 69 6e 67 2e 0d |bit addr|essing..|
|00001730| 09 09 09 4d 75 63 68 20 | 66 61 73 74 65 72 20 6e |...Much |faster n|
|00001740| 6f 77 2c 20 75 73 69 6e | 67 20 74 61 62 6c 65 2d |ow, usin|g table-|
|00001750| 6c 6f 6f 6b 75 70 20 69 | 6e 73 74 65 61 64 20 6f |lookup i|nstead o|
|00001760| 66 20 73 70 72 69 6e 74 | 66 20 66 6f 72 20 0d 09 |f sprint|f for ..|
|00001770| 09 09 74 68 65 20 68 65 | 78 20 65 6e 63 6f 64 69 |..the he|x encodi|
|00001780| 6e 67 2e 0d 09 09 09 44 | 65 6c 65 74 65 64 20 6f |ng.....D|eleted o|
|00001790| 62 73 6f 6c 65 74 65 20 | 73 75 70 70 6f 72 74 20 |bsolete |support |
|000017a0| 66 6f 72 20 54 48 49 4e | 4b 20 43 20 34 2e 0d 34 |for THIN|K C 4..4|
|000017b0| 2f 32 39 2f 39 33 09 64 | 67 70 09 26 20 6a 61 73 |/29/93.d|gp.& jas|
|000017c0| 20 41 64 64 65 64 20 65 | 78 70 6c 61 6e 61 74 69 | Added e|xplanati|
|000017d0| 6f 6e 20 6f 66 20 68 6f | 77 20 74 6f 20 64 6f 20 |on of ho|w to do |
|000017e0| 74 69 6c 69 6e 67 2e 0d | 35 2f 32 37 2f 39 33 09 |tiling..|5/27/93.|
|000017f0| 64 67 70 09 6d 69 6e 6f | 72 20 65 64 69 74 69 6e |dgp.mino|r editin|
|00001800| 67 20 66 6f 72 20 73 70 | 65 65 64 20 61 6e 64 20 |g for sp|eed and |
|00001810| 63 6c 61 72 69 74 79 0d | 36 2f 31 35 2f 39 33 09 |clarity.|6/15/93.|
|00001820| 64 67 70 09 46 69 78 65 | 64 20 73 69 6c 6c 79 20 |dgp.Fixe|d silly |
|00001830| 62 75 67 20 69 6e 74 72 | 6f 64 75 63 65 64 20 35 |bug intr|oduced 5|
|00001840| 2f 32 37 2f 39 33 20 74 | 68 61 74 20 73 75 70 70 |/27/93 t|hat supp|
|00001850| 72 65 73 73 65 64 20 61 | 6c 6c 20 68 65 78 20 64 |ressed a|ll hex d|
|00001860| 61 74 61 2e 0d 09 09 09 | 43 61 6c 6c 20 53 74 72 |ata.....|Call Str|
|00001870| 69 70 41 64 64 72 65 73 | 73 2e 0d 36 2f 32 39 2f |ipAddres|s..6/29/|
|00001880| 39 33 09 64 67 70 09 43 | 68 61 6e 67 65 64 20 63 |93.dgp.C|hanged c|
|00001890| 61 6c 6c 20 69 6e 74 65 | 72 66 61 63 65 20 74 6f |all inte|rface to|
|000018a0| 20 61 63 63 65 70 74 20 | 61 20 70 69 78 6d 61 70 | accept |a pixmap|
|000018b0| 20 68 61 6e 64 6c 65 20 | 69 6e 73 74 65 61 64 20 | handle |instead |
|000018c0| 6f 66 20 61 20 70 6f 69 | 6e 74 65 72 2e 0d 09 09 |of a poi|nter....|
|000018d0| 09 54 68 65 20 70 72 6f | 62 6c 65 6d 20 77 69 74 |.The pro|blem wit|
|000018e0| 68 20 61 63 63 65 70 74 | 69 6e 67 20 61 20 70 6f |h accept|ing a po|
|000018f0| 69 6e 74 65 72 20 69 73 | 20 74 68 61 74 20 74 68 |inter is| that th|
|00001900| 65 20 75 73 65 72 20 6d | 75 73 74 20 72 65 6d 65 |e user m|ust reme|
|00001910| 6d 62 65 72 0d 09 09 09 | 74 6f 20 6c 6f 63 6b 20 |mber....|to lock |
|00001920| 74 68 65 20 68 61 6e 64 | 6c 65 20 62 65 66 6f 72 |the hand|le befor|
|00001930| 65 20 64 65 72 65 66 65 | 72 65 6e 63 69 6e 67 20 |e derefe|rencing |
|00001940| 69 74 20 74 6f 20 67 65 | 74 20 74 68 65 20 70 6f |it to ge|t the po|
|00001950| 69 6e 74 65 72 2c 20 61 | 6e 64 0d 09 09 09 6c 6f |inter, a|nd....lo|
|00001960| 74 73 20 6f 66 20 70 65 | 6f 70 6c 65 20 66 6f 72 |ts of pe|ople for|
|00001970| 67 65 74 2c 20 6c 65 61 | 64 69 6e 67 20 74 6f 20 |get, lea|ding to |
|00001980| 61 20 6d 79 73 74 65 72 | 69 6f 75 73 20 63 72 61 |a myster|ious cra|
|00001990| 73 68 2e 20 4e 6f 77 20 | 74 68 65 20 6c 6f 63 6b |sh. Now |the lock|
|000019a0| 69 6e 67 0d 09 09 09 69 | 73 20 68 61 6e 64 6c 65 |ing....i|s handle|
|000019b0| 64 20 69 6e 74 65 72 6e | 61 6c 6c 79 2c 20 61 75 |d intern|ally, au|
|000019c0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 2e 0d 36 2f 33 |tomatica|lly..6/3|
|000019d0| 30 2f 39 33 09 64 67 70 | 09 41 64 64 65 64 20 65 |0/93.dgp|.Added e|
|000019e0| 78 61 6d 70 6c 65 2c 20 | 61 62 6f 76 65 2c 20 73 |xample, |above, s|
|000019f0| 68 6f 77 69 6e 67 20 68 | 6f 77 20 74 6f 20 70 72 |howing h|ow to pr|
|00001a00| 69 6e 74 20 73 63 72 65 | 65 6e 20 74 6f 20 64 69 |int scre|en to di|
|00001a10| 73 6b 2e 0d 37 2f 39 2f | 39 33 09 64 67 70 20 63 |sk..7/9/|93.dgp c|
|00001a20| 68 65 63 6b 20 66 6f 72 | 20 33 32 2d 62 69 74 20 |heck for| 32-bit |
|00001a30| 61 64 64 72 65 73 73 69 | 6e 67 20 63 61 70 61 62 |addressi|ng capab|
|00001a40| 69 6c 69 74 79 2e 0d 31 | 32 2f 31 35 2f 39 33 20 |ility..1|2/15/93 |
|00001a50| 64 67 70 20 61 64 64 65 | 64 20 66 69 6c 65 6e 61 |dgp adde|d filena|
|00001a60| 6d 65 20 61 72 67 75 6d | 65 6e 74 20 74 6f 20 74 |me argum|ent to t|
|00001a70| 68 65 20 64 69 61 67 6e | 6f 73 74 69 63 20 6d 65 |he diagn|ostic me|
|00001a80| 73 73 61 67 65 73 2e 0d | 09 09 09 43 6f 72 72 65 |ssages..|...Corre|
|00001a90| 63 74 65 64 20 67 72 61 | 79 4c 65 76 65 6c 73 20 |cted gra|yLevels |
|00001aa0| 74 6f 20 67 72 61 79 4c | 65 76 65 6c 73 2d 31 20 |to grayL|evels-1 |
|00001ab0| 69 6e 20 63 6f 6d 70 75 | 74 69 6e 67 0d 09 09 09 |in compu|ting....|
|00001ac0| 74 68 65 20 72 65 71 75 | 69 72 65 64 20 6e 75 6d |the requ|ired num|
|00001ad0| 62 65 72 20 6f 66 20 70 | 69 78 65 6c 73 20 69 6e |ber of p|ixels in|
|00001ae0| 20 74 68 65 20 68 61 6c | 66 74 6f 6e 65 20 63 65 | the hal|ftone ce|
|00001af0| 6c 6c 2e 0d 36 2f 31 38 | 2f 39 34 09 64 67 70 09 |ll..6/18|/94.dgp.|
|00001b00| 63 61 6e 33 32 20 69 73 | 20 6e 6f 77 20 63 6f 6d |can32 is| now com|
|00001b10| 70 75 74 65 64 20 62 79 | 20 63 61 6c 6c 69 6e 67 |puted by| calling|
|00001b20| 20 54 72 61 70 41 76 61 | 69 6c 61 62 6c 65 28 5f | TrapAva|ilable(_|
|00001b30| 53 77 61 70 4d 4d 55 4d | 6f 64 65 29 2c 20 77 68 |SwapMMUM|ode), wh|
|00001b40| 69 63 68 20 0d 09 09 09 | 72 65 74 75 72 6e 73 20 |ich ....|returns |
|00001b50| 74 68 65 20 63 6f 72 72 | 65 63 74 20 61 6e 73 77 |the corr|ect answ|
|00001b60| 65 72 20 65 76 65 6e 20 | 6f 6e 20 4d 61 63 73 20 |er even |on Macs |
|00001b70| 77 69 74 68 20 64 69 72 | 74 79 20 52 4f 4d 73 2e |with dir|ty ROMs.|
|00001b80| 0d 39 2f 35 2f 39 34 20 | 64 67 70 20 72 65 6d 6f |.9/5/94 |dgp remo|
|00001b90| 76 65 64 20 61 73 73 75 | 6d 70 74 69 6f 6e 20 69 |ved assu|mption i|
|00001ba0| 6e 20 70 72 69 6e 74 66 | 27 73 20 74 68 61 74 20 |n printf|'s that |
|00001bb0| 69 6e 74 3d 3d 73 68 6f | 72 74 2e 0d 35 2f 32 33 |int==sho|rt..5/23|
|00001bc0| 2f 39 35 20 64 67 70 20 | 41 70 70 6c 65 20 63 68 |/95 dgp |Apple ch|
|00001bd0| 61 6e 67 65 64 20 74 68 | 65 20 70 72 6f 74 6f 74 |anged th|e protot|
|00001be0| 79 70 65 20 69 6e 20 74 | 68 65 20 68 65 61 64 65 |ype in t|he heade|
|00001bf0| 72 20 66 69 6c 65 20 66 | 72 6f 6d 20 53 77 61 70 |r file f|rom Swap|
|00001c00| 4d 4d 55 4d 6f 64 65 28 | 63 68 61 72 20 2a 29 20 |MMUMode(|char *) |
|00001c10| 74 6f 20 0d 09 09 09 53 | 77 61 70 4d 4d 55 4d 6f |to ....S|wapMMUMo|
|00001c20| 64 65 28 73 69 67 6e 65 | 64 20 63 68 61 72 20 2a |de(signe|d char *|
|00001c30| 29 2e 20 54 6f 20 72 65 | 74 61 69 6e 20 63 6f 6d |). To re|tain com|
|00001c40| 70 61 74 69 62 69 6c 69 | 74 79 20 77 69 74 68 20 |patibili|ty with |
|00001c50| 62 6f 74 68 20 6f 6c 64 | 20 61 6e 64 20 6e 65 77 |both old| and new|
|00001c60| 0d 09 09 09 68 65 61 64 | 65 72 73 2c 20 49 20 63 |....head|ers, I c|
|00001c70| 61 73 74 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 |ast the |argument|
|00001c80| 20 28 76 6f 69 64 20 2a | 29 2e 0d 36 2f 33 30 2f | (void *|)..6/30/|
|00001c90| 39 35 20 64 67 70 20 63 | 68 61 6e 67 65 64 20 54 |95 dgp c|hanged T|
|00001ca0| 59 50 45 20 66 72 6f 6d | 20 54 45 58 54 20 74 6f |YPE from| TEXT to|
|00001cb0| 20 45 50 53 46 2e 20 41 | 64 64 65 64 20 65 78 70 | EPSF. A|dded exp|
|00001cc0| 6c 61 6e 61 74 69 6f 6e | 2c 20 61 62 6f 76 65 2c |lanation|, above,|
|00001cd0| 20 66 6f 72 20 68 6f 77 | 20 74 6f 20 0d 09 09 09 | for how| to ....|
|00001ce0| 69 6d 70 6f 72 74 20 69 | 6e 74 6f 20 57 6f 72 64 |import i|nto Word|
|00001cf0| 2e 0d 36 2f 33 30 2f 39 | 35 09 64 67 70 20 61 64 |..6/30/9|5.dgp ad|
|00001d00| 64 20 50 49 43 54 20 72 | 65 73 6f 75 72 63 65 20 |d PICT r|esource |
|00001d10| 70 72 65 76 69 65 77 20 | 6f 66 20 69 6d 61 67 65 |preview |of image|
|00001d20| 2c 20 73 6f 20 77 65 27 | 72 65 20 70 72 6f 64 75 |, so we'|re produ|
|00001d30| 63 69 6e 67 20 61 20 73 | 74 61 6e 64 61 72 64 20 |cing a s|tandard |
|00001d40| 65 70 73 20 66 69 6c 65 | 2e 0d 09 09 09 52 65 76 |eps file|.....Rev|
|00001d50| 69 73 65 64 20 74 68 65 | 20 66 69 72 73 74 20 73 |ised the| first s|
|00001d60| 65 76 65 72 61 6c 20 70 | 61 72 61 67 72 61 70 68 |everal p|aragraph|
|00001d70| 73 20 6f 66 20 74 68 65 | 20 64 6f 63 75 6d 65 6e |s of the| documen|
|00001d80| 74 61 74 69 6f 6e 20 61 | 62 6f 76 65 20 74 6f 20 |tation a|bove to |
|00001d90| 72 65 66 6c 65 63 74 20 | 74 68 65 0d 09 09 09 66 |reflect |the....f|
|00001da0| 61 63 74 20 74 68 61 74 | 20 77 65 20 6e 6f 77 20 |act that| we now |
|00001db0| 70 72 6f 64 75 63 65 20 | 61 20 73 74 61 6e 64 61 |produce |a standa|
|00001dc0| 72 64 20 45 50 53 46 20 | 66 69 6c 65 2e 20 4d 61 |rd EPSF |file. Ma|
|00001dd0| 6b 65 20 50 49 43 54 27 | 73 20 63 6f 6c 6f 72 20 |ke PICT'|s color |
|00001de0| 74 61 62 6c 65 20 63 6f | 6e 73 69 73 74 65 6e 74 |table co|nsistent|
|00001df0| 0d 09 09 09 77 69 74 68 | 20 74 68 65 20 50 6f 73 |....with| the Pos|
|00001e00| 74 53 63 72 69 70 74 2e | 0d 2a 2f 0d 23 69 6e 63 |tScript.|.*/.#inc|
|00001e10| 6c 75 64 65 20 22 56 69 | 64 65 6f 54 6f 6f 6c 62 |lude "Vi|deoToolb|
|00001e20| 6f 78 2e 68 22 0d 23 69 | 66 6e 64 65 66 20 5f 5f |ox.h".#i|fndef __|
|00001e30| 54 52 41 50 53 5f 5f 0d | 09 23 69 6e 63 6c 75 64 |TRAPS__.|.#includ|
|00001e40| 65 20 3c 54 72 61 70 73 | 2e 68 3e 09 09 2f 2f 20 |e <Traps|.h>..// |
|00001e50| 5f 53 77 61 70 4d 4d 55 | 4d 6f 64 65 0d 23 65 6e |_SwapMMU|Mode.#en|
|00001e60| 64 69 66 0d 23 64 65 66 | 69 6e 65 20 54 59 50 45 |dif.#def|ine TYPE|
|00001e70| 20 27 45 50 53 46 27 0d | 23 64 65 66 69 6e 65 20 | 'EPSF'.|#define |
|00001e80| 43 52 45 41 54 4f 52 20 | 27 52 2a 63 68 27 09 2f |CREATOR |'R*ch'./|
|00001e90| 2a 20 66 6f 72 20 42 42 | 45 64 69 74 20 2a 2f 0d |* for BB|Edit */.|
|00001ea0| 50 69 63 48 61 6e 64 6c | 65 20 50 69 78 4d 61 70 |PicHandl|e PixMap|
|00001eb0| 54 6f 50 69 63 74 75 72 | 65 28 50 69 78 4d 61 70 |ToPictur|e(PixMap|
|00001ec0| 20 2a 2a 70 6d 2c 52 65 | 63 74 20 2a 72 65 63 74 | **pm,Re|ct *rect|
|00001ed0| 50 74 72 2c 69 6e 74 20 | 70 69 78 65 6c 53 69 7a |Ptr,int |pixelSiz|
|00001ee0| 65 2c 43 6f 6c 6f 72 54 | 61 62 6c 65 20 2a 2a 63 |e,ColorT|able **c|
|00001ef0| 54 61 62 6c 65 29 3b 0d | 0d 76 6f 69 64 20 57 69 |Table);.|.void Wi|
|00001f00| 6e 64 6f 77 54 6f 45 50 | 53 28 43 57 69 6e 64 6f |ndowToEP|S(CWindo|
|00001f10| 77 50 74 72 20 77 69 6e | 64 6f 77 2c 63 68 61 72 |wPtr win|dow,char|
|00001f20| 20 2a 66 69 6c 65 6e 61 | 6d 65 2c 52 65 63 74 20 | *filena|me,Rect |
|00001f30| 2a 72 65 63 74 50 74 72 | 0d 09 2c 52 65 63 74 20 |*rectPtr|..,Rect |
|00001f40| 2a 70 61 67 65 52 65 63 | 74 50 74 72 2c 64 6f 75 |*pageRec|tPtr,dou|
|00001f50| 62 6c 65 20 63 65 6c 6c | 73 50 65 72 49 6e 63 68 |ble cell|sPerInch|
|00001f60| 2c 69 6e 74 20 67 72 61 | 79 4c 65 76 65 6c 73 2c |,int gra|yLevels,|
|00001f70| 66 6c 6f 61 74 20 72 65 | 66 6c 65 63 74 61 6e 63 |float re|flectanc|
|00001f80| 65 5b 32 35 36 5d 29 0d | 7b 0d 09 50 69 78 4d 61 |e[256]).|{..PixMa|
|00001f90| 70 20 2a 2a 70 6d 3b 0d | 09 46 49 4c 45 20 2a 66 |p **pm;.|.FILE *f|
|00001fa0| 69 6c 65 3b 0d 09 75 6e | 73 69 67 6e 65 64 20 63 |ile;..un|signed c|
|00001fb0| 68 61 72 20 2a 61 64 64 | 72 3b 0d 09 6c 6f 6e 67 |har *add|r;..long|
|00001fc0| 20 79 2c 62 79 74 65 73 | 2c 77 69 64 74 68 3b 0d | y,bytes|,width;.|
|00001fd0| 09 72 65 67 69 73 74 65 | 72 20 6c 6f 6e 67 20 69 |.registe|r long i|
|00001fe0| 3b 0d 09 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |;..unsig|ned shor|
|00001ff0| 74 20 2a 62 75 66 66 65 | 72 2c 2a 62 75 66 66 65 |t *buffe|r,*buffe|
|00002000| 72 33 32 3b 0d 09 72 65 | 67 69 73 74 65 72 20 75 |r32;..re|gister u|
|00002010| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 20 2a 77 |nsigned |short *w|
|00002020| 6f 72 64 2c 68 65 78 5b | 32 35 36 5d 3b 0d 09 72 |ord,hex[|256];..r|
|00002030| 65 67 69 73 74 65 72 20 | 75 6e 73 69 67 6e 65 64 |egister |unsigned|
|00002040| 20 63 68 61 72 20 2a 62 | 79 74 65 3b 0d 09 73 68 | char *b|yte;..sh|
|00002050| 6f 72 74 20 70 69 78 65 | 6c 53 69 7a 65 3b 0d 09 |ort pixe|lSize;..|
|00002060| 73 68 6f 72 74 20 72 6f | 77 42 79 74 65 73 3b 0d |short ro|wBytes;.|
|00002070| 09 74 69 6d 65 5f 74 20 | 41 4e 53 49 54 69 6d 65 |.time_t |ANSITime|
|00002080| 3b 0d 09 63 68 61 72 20 | 73 74 72 69 6e 67 5b 31 |;..char |string[1|
|00002090| 30 30 5d 3b 0d 09 73 69 | 67 6e 65 64 20 63 68 61 |00];..si|gned cha|
|000020a0| 72 20 6d 6f 64 65 3b 0d | 09 63 68 61 72 20 70 6d |r mode;.|.char pm|
|000020b0| 53 74 61 74 65 3b 0d 09 | 73 74 61 74 69 63 20 42 |State;..|static B|
|000020c0| 6f 6f 6c 65 61 6e 20 63 | 61 6e 33 32 2c 69 73 33 |oolean c|an32,is3|
|000020d0| 32 2c 66 69 72 73 74 54 | 69 6d 65 3d 31 3b 0d 09 |2,firstT|ime=1;..|
|000020e0| 6c 6f 6e 67 20 67 65 73 | 74 61 6c 74 3b 0d 09 69 |long ges|talt;..i|
|000020f0| 6e 74 20 65 72 72 6f 72 | 2c 6f 6c 64 52 65 73 46 |nt error|,oldResF|
|00002100| 69 6c 65 2c 72 65 73 46 | 69 6c 65 3d 30 3b 0d 09 |ile,resF|ile=0;..|
|00002110| 42 6f 6f 6c 65 61 6e 20 | 6f 6b 3b 0d 09 50 69 63 |Boolean |ok;..Pic|
|00002120| 48 61 6e 64 6c 65 20 70 | 69 63 3b 0d 09 43 6f 6c |Handle p|ic;..Col|
|00002130| 6f 72 54 61 62 6c 65 20 | 2a 2a 63 74 3b 0d 09 53 |orTable |**ct;..S|
|00002140| 74 72 36 33 20 76 6f 6c | 75 6d 65 4e 61 6d 65 3d |tr63 vol|umeName=|
|00002150| 22 5c 70 22 3b 0d 09 43 | 6f 6c 6f 72 53 70 65 63 |"\p";..C|olorSpec|
|00002160| 20 2a 63 6f 6c 6f 72 53 | 70 65 63 50 74 72 3b 0d | *colorS|pecPtr;.|
|00002170| 0d 09 2f 2f 20 43 72 65 | 61 74 65 20 66 69 6c 65 |..// Cre|ate file|
|00002180| 27 73 20 64 61 74 61 20 | 66 6f 72 6b 3a 20 50 6f |'s data |fork: Po|
|00002190| 73 74 53 63 72 69 70 74 | 20 74 65 78 74 2e 0d 09 |stScript| text...|
|000021a0| 61 73 73 65 72 74 28 53 | 74 61 63 6b 53 70 61 63 |assert(S|tackSpac|
|000021b0| 65 28 29 3e 35 30 30 30 | 29 3b 0d 09 69 66 28 66 |e()>5000|);..if(f|
|000021c0| 69 72 73 74 54 69 6d 65 | 29 7b 0d 09 09 47 65 73 |irstTime|){...Ges|
|000021d0| 74 61 6c 74 28 67 65 73 | 74 61 6c 74 41 64 64 72 |talt(ges|taltAddr|
|000021e0| 65 73 73 69 6e 67 4d 6f | 64 65 41 74 74 72 2c 26 |essingMo|deAttr,&|
|000021f0| 67 65 73 74 61 6c 74 29 | 3b 0d 09 09 69 73 33 32 |gestalt)|;...is32|
|00002200| 3d 67 65 73 74 61 6c 74 | 26 28 31 4c 3c 3c 67 65 |=gestalt|&(1L<<ge|
|00002210| 73 74 61 6c 74 33 32 42 | 69 74 41 64 64 72 65 73 |stalt32B|itAddres|
|00002220| 73 69 6e 67 29 3b 0d 09 | 09 63 61 6e 33 32 3d 54 |sing);..|.can32=T|
|00002230| 72 61 70 41 76 61 69 6c | 61 62 6c 65 28 5f 53 77 |rapAvail|able(_Sw|
|00002240| 61 70 4d 4d 55 4d 6f 64 | 65 29 3b 0d 09 09 66 69 |apMMUMod|e);...fi|
|00002250| 72 73 74 54 69 6d 65 3d | 30 3b 0d 09 7d 0d 09 69 |rstTime=|0;..}..i|
|00002260| 66 28 49 73 47 57 6f 72 | 6c 64 50 74 72 28 77 69 |f(IsGWor|ldPtr(wi|
|00002270| 6e 64 6f 77 29 29 7b 0d | 09 09 2f 2f 20 49 74 27 |ndow)){.|..// It'|
|00002280| 73 20 61 20 47 57 6f 72 | 6c 64 50 74 72 2c 20 6c |s a GWor|ldPtr, l|
|00002290| 6f 63 6b 20 74 68 65 20 | 70 69 78 65 6c 73 2e 0d |ock the |pixels..|
|000022a0| 09 09 6f 6b 3d 4c 6f 63 | 6b 50 69 78 65 6c 73 28 |..ok=Loc|kPixels(|
|000022b0| 47 65 74 47 57 6f 72 6c | 64 50 69 78 4d 61 70 28 |GetGWorl|dPixMap(|
|000022c0| 28 47 57 6f 72 6c 64 50 | 74 72 29 77 69 6e 64 6f |(GWorldP|tr)windo|
|000022d0| 77 29 29 3b 0d 09 09 69 | 66 28 21 6f 6b 29 50 72 |w));...i|f(!ok)Pr|
|000022e0| 69 6e 74 66 45 78 69 74 | 28 22 25 73 3a 20 63 61 |intfExit|("%s: ca|
|000022f0| 6e 27 74 20 4c 6f 63 6b | 50 69 78 65 6c 73 20 6f |n't Lock|Pixels o|
|00002300| 6e 20 47 57 6f 72 6c 64 | 2e 5c 6e 22 2c 5f 5f 46 |n GWorld|.\n",__F|
|00002310| 49 4c 45 5f 5f 29 3b 0d | 09 09 70 6d 3d 47 65 74 |ILE__);.|..pm=Get|
|00002320| 47 57 6f 72 6c 64 50 69 | 78 4d 61 70 28 28 47 57 |GWorldPi|xMap((GW|
|00002330| 6f 72 6c 64 50 74 72 29 | 77 69 6e 64 6f 77 29 3b |orldPtr)|window);|
|00002340| 0d 09 7d 65 6c 73 65 20 | 69 66 28 77 69 6e 64 6f |..}else |if(windo|
|00002350| 77 2d 3e 70 6f 72 74 56 | 65 72 73 69 6f 6e 3c 30 |w->portV|ersion<0|
|00002360| 29 7b 09 2f 2f 20 49 73 | 20 69 74 20 61 20 43 47 |){.// Is| it a CG|
|00002370| 72 61 66 50 6f 72 74 20 | 6f 72 20 61 20 47 72 61 |rafPort |or a Gra|
|00002380| 66 50 6f 72 74 3f 0d 09 | 09 2f 2f 20 49 74 27 73 |fPort?..|.// It's|
|00002390| 20 61 20 43 47 72 61 66 | 50 6f 72 74 2e 0d 09 09 | a CGraf|Port....|
|000023a0| 70 6d 3d 77 69 6e 64 6f | 77 2d 3e 70 6f 72 74 50 |pm=windo|w->portP|
|000023b0| 69 78 4d 61 70 3b 0d 09 | 7d 65 6c 73 65 7b 0d 09 |ixMap;..|}else{..|
|000023c0| 09 2f 2f 20 49 74 27 73 | 20 61 20 47 72 61 66 50 |.// It's| a GrafP|
|000023d0| 6f 72 74 2e 0d 09 09 50 | 72 69 6e 74 66 45 78 69 |ort....P|rintfExi|
|000023e0| 74 28 22 25 73 3a 20 73 | 6f 75 72 63 65 20 6d 75 |t("%s: s|ource mu|
|000023f0| 73 74 20 62 65 20 47 57 | 6f 72 6c 64 20 6f 72 20 |st be GW|orld or |
|00002400| 63 6f 6c 6f 72 20 57 69 | 6e 64 6f 77 2e 5c 6e 22 |color Wi|ndow.\n"|
|00002410| 2c 5f 5f 46 49 4c 45 5f | 5f 29 3b 0d 09 7d 0d 09 |,__FILE_|_);..}..|
|00002420| 69 66 28 63 65 6c 6c 73 | 50 65 72 49 6e 63 68 21 |if(cells|PerInch!|
|00002430| 3d 30 2e 30 20 26 26 20 | 67 72 61 79 4c 65 76 65 |=0.0 && |grayLeve|
|00002440| 6c 73 21 3d 30 2e 30 29 | 50 72 69 6e 74 66 45 78 |ls!=0.0)|PrintfEx|
|00002450| 69 74 28 22 25 73 28 25 | 73 29 3a 20 22 0d 09 09 |it("%s(%|s): "...|
|00002460| 22 79 6f 75 20 6d 61 79 | 20 6e 6f 74 20 73 70 65 |"you may| not spe|
|00002470| 63 69 66 79 20 42 4f 54 | 48 20 63 65 6c 6c 73 50 |cify BOT|H cellsP|
|00002480| 65 72 49 6e 63 68 20 26 | 20 67 72 61 79 4c 65 76 |erInch &| grayLev|
|00002490| 65 6c 73 2e 5c 6e 22 0d | 09 09 22 53 65 74 20 6f |els.\n".|.."Set o|
|000024a0| 6e 65 20 74 6f 20 7a 65 | 72 6f 2e 5c 6e 22 2c 5f |ne to ze|ro.\n",_|
|000024b0| 5f 46 49 4c 45 5f 5f 2c | 66 69 6c 65 6e 61 6d 65 |_FILE__,|filename|
|000024c0| 29 3b 0d 09 66 69 6c 65 | 3d 66 6f 70 65 6e 28 66 |);..file|=fopen(f|
|000024d0| 69 6c 65 6e 61 6d 65 2c | 22 77 22 29 3b 0d 09 69 |ilename,|"w");..i|
|000024e0| 66 28 66 69 6c 65 3d 3d | 4e 55 4c 4c 29 50 72 69 |f(file==|NULL)Pri|
|000024f0| 6e 74 66 45 78 69 74 28 | 22 25 73 3a 20 45 72 72 |ntfExit(|"%s: Err|
|00002500| 6f 72 20 69 6e 20 6f 70 | 65 6e 69 6e 67 20 66 69 |or in op|ening fi|
|00002510| 6c 65 20 d2 25 73 d3 2e | 5c 6e 22 0d 09 09 2c 5f |le .%s..|\n"...,_|
|00002520| 5f 46 49 4c 45 5f 5f 2c | 66 69 6c 65 6e 61 6d 65 |_FILE__,|filename|
|00002530| 29 3b 0d 09 70 6d 53 74 | 61 74 65 3d 48 47 65 74 |);..pmSt|ate=HGet|
|00002540| 53 74 61 74 65 28 28 48 | 61 6e 64 6c 65 29 70 6d |State((H|andle)pm|
|00002550| 29 3b 0d 09 48 4c 6f 63 | 6b 28 28 48 61 6e 64 6c |);..HLoc|k((Handl|
|00002560| 65 29 70 6d 29 3b 0d 09 | 61 64 64 72 3d 52 65 63 |e)pm);..|addr=Rec|
|00002570| 74 54 6f 41 64 64 72 65 | 73 73 28 2a 70 6d 2c 72 |tToAddre|ss(*pm,r|
|00002580| 65 63 74 50 74 72 2c 26 | 72 6f 77 42 79 74 65 73 |ectPtr,&|rowBytes|
|00002590| 2c 26 70 69 78 65 6c 53 | 69 7a 65 2c 4e 55 4c 4c |,&pixelS|ize,NULL|
|000025a0| 29 3b 0d 09 69 66 28 61 | 64 64 72 3d 3d 4e 55 4c |);..if(a|ddr==NUL|
|000025b0| 4c 29 50 72 69 6e 74 66 | 45 78 69 74 28 22 25 73 |L)Printf|Exit("%s|
|000025c0| 28 25 73 29 3a 20 42 61 | 64 20 50 69 78 4d 61 70 |(%s): Ba|d PixMap|
|000025d0| 2e 5c 6e 22 2c 5f 5f 46 | 49 4c 45 5f 5f 2c 66 69 |.\n",__F|ILE__,fi|
|000025e0| 6c 65 6e 61 6d 65 29 3b | 0d 09 69 66 28 70 69 78 |lename);|..if(pix|
|000025f0| 65 6c 53 69 7a 65 21 3d | 38 29 50 72 69 6e 74 66 |elSize!=|8)Printf|
|00002600| 45 78 69 74 28 22 25 73 | 28 25 73 29 3a 20 22 0d |Exit("%s|(%s): ".|
|00002610| 09 09 22 53 6f 72 72 79 | 2c 20 70 69 78 65 6c 53 |.."Sorry|, pixelS|
|00002620| 69 7a 65 20 6d 75 73 74 | 20 62 65 20 38 2c 20 6e |ize must| be 8, n|
|00002630| 6f 74 20 25 64 2e 5c 6e | 22 2c 5f 5f 46 49 4c 45 |ot %d.\n|",__FILE|
|00002640| 5f 5f 2c 66 69 6c 65 6e | 61 6d 65 2c 28 69 6e 74 |__,filen|ame,(int|
|00002650| 29 70 69 78 65 6c 53 69 | 7a 65 29 3b 0d 09 74 69 |)pixelSi|ze);..ti|
|00002660| 6d 65 28 26 41 4e 53 49 | 54 69 6d 65 29 3b 0d 09 |me(&ANSI|Time);..|
|00002670| 73 74 72 66 74 69 6d 65 | 28 73 74 72 69 6e 67 2c |strftime|(string,|
|00002680| 73 69 7a 65 6f 66 28 73 | 74 72 69 6e 67 29 2c 22 |sizeof(s|tring),"|
|00002690| 25 49 3a 25 4d 20 25 70 | 20 25 41 2c 20 25 42 20 |%I:%M %p| %A, %B |
|000026a0| 25 64 2c 20 25 59 22 2c | 6c 6f 63 61 6c 74 69 6d |%d, %Y",|localtim|
|000026b0| 65 28 26 41 4e 53 49 54 | 69 6d 65 29 29 3b 0d 09 |e(&ANSIT|ime));..|
|000026c0| 66 70 72 69 6e 74 66 28 | 66 69 6c 65 2c 0d 09 09 |fprintf(|file,...|
|000026d0| 22 25 25 21 50 53 2d 41 | 64 6f 62 65 2d 32 2e 30 |"%%!PS-A|dobe-2.0|
|000026e0| 20 45 50 53 46 2d 31 2e | 32 5c 6e 22 29 3b 0d 09 | EPSF-1.|2\n");..|
|000026f0| 66 70 72 69 6e 74 66 28 | 66 69 6c 65 2c 0d 09 09 |fprintf(|file,...|
|00002700| 22 25 25 25 25 43 72 65 | 61 74 6f 72 3a 25 73 5c |"%%%%Cre|ator:%s\|
|00002710| 6e 22 2c 49 64 65 6e 74 | 69 66 79 41 70 70 6c 69 |n",Ident|ifyAppli|
|00002720| 63 61 74 69 6f 6e 28 29 | 29 3b 0d 09 66 70 72 69 |cation()|);..fpri|
|00002730| 6e 74 66 28 66 69 6c 65 | 2c 0d 09 09 22 25 25 25 |ntf(file|,..."%%%|
|00002740| 25 46 6f 72 3a 25 73 5c | 6e 22 2c 49 64 65 6e 74 |%For:%s\|n",Ident|
|00002750| 69 66 79 4f 77 6e 65 72 | 28 29 29 3b 0d 09 66 70 |ifyOwner|());..fp|
|00002760| 72 69 6e 74 66 28 66 69 | 6c 65 2c 0d 09 09 22 25 |rintf(fi|le,..."%|
|00002770| 25 25 25 54 69 74 6c 65 | 3a 25 73 5c 6e 22 2c 66 |%%%Title|:%s\n",f|
|00002780| 69 6c 65 6e 61 6d 65 29 | 3b 0d 09 66 70 72 69 6e |ilename)|;..fprin|
|00002790| 74 66 28 66 69 6c 65 2c | 0d 09 09 22 25 25 25 25 |tf(file,|..."%%%%|
|000027a0| 43 72 65 61 74 69 6f 6e | 44 61 74 65 3a 25 73 5c |Creation|Date:%s\|
|000027b0| 6e 22 2c 73 74 72 69 6e | 67 29 3b 0d 09 66 70 72 |n",strin|g);..fpr|
|000027c0| 69 6e 74 66 28 66 69 6c | 65 2c 0d 09 09 22 25 25 |intf(fil|e,..."%%|
|000027d0| 25 25 50 61 67 65 73 3a | 20 30 5c 6e 22 0d 09 09 |%%Pages:| 0\n"...|
|000027e0| 22 25 25 25 25 42 6f 75 | 6e 64 69 6e 67 42 6f 78 |"%%%%Bou|ndingBox|
|000027f0| 3a 25 64 20 25 64 20 25 | 64 20 25 64 5c 6e 22 0d |:%d %d %|d %d\n".|
|00002800| 09 09 2c 28 69 6e 74 29 | 70 61 67 65 52 65 63 74 |..,(int)|pageRect|
|00002810| 50 74 72 2d 3e 6c 65 66 | 74 2c 28 69 6e 74 29 70 |Ptr->lef|t,(int)p|
|00002820| 61 67 65 52 65 63 74 50 | 74 72 2d 3e 62 6f 74 74 |ageRectP|tr->bott|
|00002830| 6f 6d 0d 09 09 2c 28 69 | 6e 74 29 70 61 67 65 52 |om...,(i|nt)pageR|
|00002840| 65 63 74 50 74 72 2d 3e | 72 69 67 68 74 2c 28 69 |ectPtr->|right,(i|
|00002850| 6e 74 29 70 61 67 65 52 | 65 63 74 50 74 72 2d 3e |nt)pageR|ectPtr->|
|00002860| 74 6f 70 29 3b 0d 09 66 | 70 72 69 6e 74 66 28 66 |top);..f|printf(f|
|00002870| 69 6c 65 2c 0d 09 09 22 | 25 25 25 25 45 6e 64 43 |ile,..."|%%%%EndC|
|00002880| 6f 6d 6d 65 6e 74 73 5c | 6e 22 0d 09 09 22 25 25 |omments\|n"..."%%|
|00002890| 25 25 42 65 67 69 6e 50 | 72 6f 6c 6f 67 5c 6e 22 |%%BeginP|rolog\n"|
|000028a0| 0d 09 09 22 25 25 25 25 | 45 6e 64 50 72 6f 6c 6f |..."%%%%|EndProlo|
|000028b0| 67 5c 6e 22 0d 09 09 22 | 25 25 25 25 42 65 67 69 |g\n"..."|%%%%Begi|
|000028c0| 6e 53 65 74 75 70 5c 6e | 22 0d 09 09 22 2f 56 69 |nSetup\n|"..."/Vi|
|000028d0| 64 65 6f 54 6f 6f 6c 62 | 6f 78 20 64 75 70 20 32 |deoToolb|ox dup 2|
|000028e0| 35 20 64 69 63 74 20 64 | 65 66 20 6c 6f 61 64 20 |5 dict d|ef load |
|000028f0| 62 65 67 69 6e 5c 6e 22 | 0d 09 09 22 65 6e 64 5c |begin\n"|..."end\|
|00002900| 6e 22 0d 09 09 22 56 69 | 64 65 6f 54 6f 6f 6c 62 |n"..."Vi|deoToolb|
|00002910| 6f 78 20 62 65 67 69 6e | 5c 6e 22 0d 09 09 22 67 |ox begin|\n"..."g|
|00002920| 73 61 76 65 5c 6e 22 0d | 09 09 22 25 25 25 25 45 |save\n".|.."%%%%E|
|00002930| 6e 64 53 65 74 75 70 5c | 6e 22 29 3b 0d 09 66 70 |ndSetup\|n");..fp|
|00002940| 72 69 6e 74 66 28 66 69 | 6c 65 2c 0d 09 09 22 2f |rintf(fi|le,..."/|
|00002950| 6e 78 20 25 64 20 64 65 | 66 09 09 09 09 25 25 20 |nx %d de|f....%% |
|00002960| 70 69 78 65 6c 73 20 70 | 65 72 20 72 61 73 74 65 |pixels p|er raste|
|00002970| 72 20 6c 69 6e 65 5c 6e | 22 2c 28 69 6e 74 29 28 |r line\n|",(int)(|
|00002980| 72 65 63 74 50 74 72 2d | 3e 72 69 67 68 74 2d 72 |rectPtr-|>right-r|
|00002990| 65 63 74 50 74 72 2d 3e | 6c 65 66 74 29 29 3b 0d |ectPtr->|left));.|
|000029a0| 09 66 70 72 69 6e 74 66 | 28 66 69 6c 65 2c 0d 09 |.fprintf|(file,..|
|000029b0| 09 22 2f 6e 79 20 25 64 | 20 64 65 66 09 09 09 09 |."/ny %d| def....|
|000029c0| 25 25 20 6c 69 6e 65 73 | 20 69 6e 20 69 6d 61 67 |%% lines| in imag|
|000029d0| 65 5c 6e 22 2c 28 69 6e | 74 29 28 72 65 63 74 50 |e\n",(in|t)(rectP|
|000029e0| 74 72 2d 3e 62 6f 74 74 | 6f 6d 2d 72 65 63 74 50 |tr->bott|om-rectP|
|000029f0| 74 72 2d 3e 74 6f 70 29 | 29 3b 0d 09 66 70 72 69 |tr->top)|);..fpri|
|00002a00| 6e 74 66 28 66 69 6c 65 | 2c 0d 09 09 22 2f 68 79 |ntf(file|,..."/hy|
|00002a10| 70 6f 74 65 6e 75 73 65 | 20 7b 64 75 70 20 6d 75 |potenuse| {dup mu|
|00002a20| 6c 20 65 78 63 68 20 64 | 75 70 20 6d 75 6c 20 61 |l exch d|up mul a|
|00002a30| 64 64 20 73 71 72 74 7d | 20 62 69 6e 64 20 64 65 |dd sqrt}| bind de|
|00002a40| 66 5c 6e 22 0d 09 09 22 | 2f 70 69 78 65 6c 73 50 |f\n"..."|/pixelsP|
|00002a50| 65 72 49 6e 63 68 20 67 | 73 61 76 65 20 69 6e 69 |erInch g|save ini|
|00002a60| 74 6d 61 74 72 69 78 20 | 37 32 20 30 20 64 74 72 |tmatrix |72 0 dtr|
|00002a70| 61 6e 73 66 6f 72 6d 20 | 68 79 70 6f 74 65 6e 75 |ansform |hypotenu|
|00002a80| 73 65 20 67 72 65 73 74 | 6f 72 65 20 64 65 66 5c |se grest|ore def\|
|00002a90| 6e 22 0d 09 09 22 25 64 | 20 25 64 20 74 72 61 6e |n"..."%d| %d tran|
|00002aa0| 73 6c 61 74 65 09 09 25 | 25 20 6c 6f 63 61 74 65 |slate..%|% locate|
|00002ab0| 20 6c 6f 77 65 72 20 6c | 65 66 74 20 6f 66 20 69 | lower l|eft of i|
|00002ac0| 6d 61 67 65 5c 6e 22 0d | 09 09 2c 28 69 6e 74 29 |mage\n".|..,(int)|
|00002ad0| 70 61 67 65 52 65 63 74 | 50 74 72 2d 3e 6c 65 66 |pageRect|Ptr->lef|
|00002ae0| 74 2c 28 69 6e 74 29 70 | 61 67 65 52 65 63 74 50 |t,(int)p|ageRectP|
|00002af0| 74 72 2d 3e 62 6f 74 74 | 6f 6d 29 3b 0d 09 66 70 |tr->bott|om);..fp|
|00002b00| 72 69 6e 74 66 28 66 69 | 6c 65 2c 0d 09 09 22 25 |rintf(fi|le,..."%|
|00002b10| 64 20 25 64 20 73 63 61 | 6c 65 09 09 09 25 25 20 |d %d sca|le...%% |
|00002b20| 70 72 69 6e 74 20 69 6d | 61 67 65 20 77 69 74 68 |print im|age with|
|00002b30| 20 74 68 65 73 65 20 64 | 69 6d 65 6e 73 69 6f 6e | these d|imension|
|00002b40| 73 20 6f 6e 20 70 61 67 | 65 5c 6e 22 0d 09 09 2c |s on pag|e\n"...,|
|00002b50| 28 69 6e 74 29 28 70 61 | 67 65 52 65 63 74 50 74 |(int)(pa|geRectPt|
|00002b60| 72 2d 3e 72 69 67 68 74 | 2d 70 61 67 65 52 65 63 |r->right|-pageRec|
|00002b70| 74 50 74 72 2d 3e 6c 65 | 66 74 29 2c 28 69 6e 74 |tPtr->le|ft),(int|
|00002b80| 29 28 70 61 67 65 52 65 | 63 74 50 74 72 2d 3e 74 |)(pageRe|ctPtr->t|
|00002b90| 6f 70 2d 70 61 67 65 52 | 65 63 74 50 74 72 2d 3e |op-pageR|ectPtr->|
|00002ba0| 62 6f 74 74 6f 6d 29 29 | 3b 0d 09 69 66 28 63 65 |bottom))|;..if(ce|
|00002bb0| 6c 6c 73 50 65 72 49 6e | 63 68 21 3d 30 2e 30 29 |llsPerIn|ch!=0.0)|
|00002bc0| 7b 0d 09 09 66 70 72 69 | 6e 74 66 28 66 69 6c 65 |{...fpri|ntf(file|
|00002bd0| 2c 0d 09 09 09 22 2f 63 | 65 6c 6c 73 50 65 72 49 |,...."/c|ellsPerI|
|00002be0| 6e 63 68 20 25 2e 32 66 | 20 64 65 66 09 25 25 20 |nch %.2f| def.%% |
|00002bf0| 68 61 6c 66 74 6f 6e 65 | 20 64 6f 74 20 66 72 65 |halftone| dot fre|
|00002c00| 71 75 65 6e 63 79 5c 6e | 22 2c 63 65 6c 6c 73 50 |quency\n|",cellsP|
|00002c10| 65 72 49 6e 63 68 29 3b | 0d 09 09 66 70 72 69 6e |erInch);|...fprin|
|00002c20| 74 66 28 66 69 6c 65 2c | 0d 09 09 09 22 63 65 6c |tf(file,|...."cel|
|00002c30| 6c 73 50 65 72 49 6e 63 | 68 20 63 75 72 72 65 6e |lsPerInc|h curren|
|00002c40| 74 73 63 72 65 65 6e 20 | 34 20 2d 32 20 72 6f 6c |tscreen |4 -2 rol|
|00002c50| 6c 20 70 6f 70 20 33 20 | 31 20 72 6f 6c 6c 20 73 |l pop 3 |1 roll s|
|00002c60| 65 74 73 63 72 65 65 6e | 5c 6e 22 29 3b 0d 09 7d |etscreen|\n");..}|
|00002c70| 0d 09 69 66 28 67 72 61 | 79 4c 65 76 65 6c 73 21 |..if(gra|yLevels!|
|00002c80| 3d 30 29 7b 0d 09 09 66 | 70 72 69 6e 74 66 28 66 |=0){...f|printf(f|
|00002c90| 69 6c 65 2c 0d 09 09 09 | 22 2f 63 65 6c 6c 73 50 |ile,....|"/cellsP|
|00002ca0| 65 72 49 6e 63 68 20 70 | 69 78 65 6c 73 50 65 72 |erInch p|ixelsPer|
|00002cb0| 49 6e 63 68 20 25 2e 32 | 66 20 64 69 76 20 64 65 |Inch %.2|f div de|
|00002cc0| 66 09 25 25 20 68 61 6c | 66 74 6f 6e 65 20 64 6f |f.%% hal|ftone do|
|00002cd0| 74 20 66 72 65 71 75 65 | 6e 63 79 5c 6e 22 0d 09 |t freque|ncy\n"..|
|00002ce0| 09 09 2c 73 71 72 74 28 | 67 72 61 79 4c 65 76 65 |..,sqrt(|grayLeve|
|00002cf0| 6c 73 2d 31 29 29 3b 0d | 09 09 66 70 72 69 6e 74 |ls-1));.|..fprint|
|00002d00| 66 28 66 69 6c 65 2c 0d | 09 09 09 22 63 65 6c 6c |f(file,.|..."cell|
|00002d10| 73 50 65 72 49 6e 63 68 | 20 63 75 72 72 65 6e 74 |sPerInch| current|
|00002d20| 73 63 72 65 65 6e 20 34 | 20 2d 32 20 72 6f 6c 6c |screen 4| -2 roll|
|00002d30| 20 70 6f 70 20 33 20 31 | 20 72 6f 6c 6c 20 73 65 | pop 3 1| roll se|
|00002d40| 74 73 63 72 65 65 6e 5c | 6e 22 29 3b 0d 09 7d 0d |tscreen\|n");..}.|
|00002d50| 09 66 70 72 69 6e 74 66 | 28 66 69 6c 65 2c 0d 09 |.fprintf|(file,..|
|00002d60| 09 22 2f 73 20 6e 78 20 | 73 74 72 69 6e 67 20 64 |."/s nx |string d|
|00002d70| 65 66 09 09 25 25 20 73 | 74 72 69 6e 67 20 74 6f |ef..%% s|tring to|
|00002d80| 20 68 6f 6c 64 20 6f 6e | 65 20 72 61 73 74 65 72 | hold on|e raster|
|00002d90| 20 6c 69 6e 65 5c 6e 22 | 0d 09 09 22 6e 78 20 6e | line\n"|..."nx n|
|00002da0| 79 20 38 09 09 09 09 09 | 25 25 20 64 69 6d 65 6e |y 8.....|%% dimen|
|00002db0| 73 69 6f 6e 73 20 61 6e | 64 20 62 69 74 73 2f 70 |sions an|d bits/p|
|00002dc0| 69 78 65 6c 20 6f 66 20 | 73 6f 75 72 63 65 20 69 |ixel of |source i|
|00002dd0| 6d 61 67 65 5c 6e 22 0d | 09 09 22 5b 6e 78 20 30 |mage\n".|.."[nx 0|
|00002de0| 20 30 20 6e 79 20 6e 65 | 67 20 30 20 6e 79 5d 09 | 0 ny ne|g 0 ny].|
|00002df0| 25 25 20 6d 61 70 20 75 | 6e 69 74 20 73 71 75 61 |%% map u|nit squa|
|00002e00| 72 65 20 74 6f 20 50 69 | 78 4d 61 70 20 64 61 74 |re to Pi|xMap dat|
|00002e10| 61 5c 6e 22 0d 09 09 22 | 7b 63 75 72 72 65 6e 74 |a\n"..."|{current|
|00002e20| 66 69 6c 65 20 73 20 72 | 65 61 64 68 65 78 73 74 |file s r|eadhexst|
|00002e30| 72 69 6e 67 20 70 6f 70 | 7d 09 25 25 20 72 65 61 |ring pop|}.%% rea|
|00002e40| 64 20 64 61 74 61 5c 6e | 22 0d 09 09 22 62 69 6e |d data\n|"..."bin|
|00002e50| 64 09 09 09 09 09 25 25 | 20 73 70 65 65 64 20 75 |d.....%%| speed u|
|00002e60| 70 20 72 65 61 64 69 6e | 67 5c 6e 22 0d 09 09 22 |p readin|g\n"..."|
|00002e70| 69 6d 61 67 65 5c 6e 22 | 29 3b 0d 09 61 73 73 65 |image\n"|);..asse|
|00002e80| 72 74 28 73 69 7a 65 6f | 66 28 2a 62 79 74 65 29 |rt(sizeo|f(*byte)|
|00002e90| 3d 3d 31 29 3b 09 2f 2f | 20 72 65 71 75 69 72 65 |==1);.//| require|
|00002ea0| 64 20 62 79 20 6f 75 72 | 20 61 6c 67 6f 72 69 74 |d by our| algorit|
|00002eb0| 68 6d 0d 09 61 73 73 65 | 72 74 28 73 69 7a 65 6f |hm..asse|rt(sizeo|
|00002ec0| 66 28 2a 77 6f 72 64 29 | 3d 3d 32 29 3b 09 2f 2f |f(*word)|==2);.//|
|00002ed0| 20 72 65 71 75 69 72 65 | 64 20 62 79 20 6f 75 72 | require|d by our|
|00002ee0| 20 61 6c 67 6f 72 69 74 | 68 6d 0d 09 69 66 28 72 | algorit|hm..if(r|
|00002ef0| 65 66 6c 65 63 74 61 6e | 63 65 3d 3d 4e 55 4c 4c |eflectan|ce==NULL|
|00002f00| 29 66 6f 72 28 69 3d 30 | 3b 69 3c 32 35 36 3b 69 |)for(i=0|;i<256;i|
|00002f10| 2b 2b 29 7b 0d 09 09 73 | 70 72 69 6e 74 66 28 73 |++){...s|printf(s|
|00002f20| 74 72 69 6e 67 2c 22 25 | 30 32 78 22 2c 28 69 6e |tring,"%|02x",(in|
|00002f30| 74 29 69 29 3b 0d 09 09 | 68 65 78 5b 69 5d 3d 2a |t)i);...|hex[i]=*|
|00002f40| 28 75 6e 73 69 67 6e 65 | 64 20 73 68 6f 72 74 20 |(unsigne|d short |
|00002f50| 2a 29 73 74 72 69 6e 67 | 3b 0d 09 7d 65 6c 73 65 |*)string|;..}else|
|00002f60| 20 66 6f 72 28 69 3d 30 | 3b 69 3c 32 35 36 3b 69 | for(i=0|;i<256;i|
|00002f70| 2b 2b 29 7b 0d 09 09 69 | 6e 74 20 6a 3b 0d 09 09 |++){...i|nt j;...|
|00002f80| 6a 3d 30 2e 35 2b 32 35 | 35 2a 72 65 66 6c 65 63 |j=0.5+25|5*reflec|
|00002f90| 74 61 6e 63 65 5b 69 5d | 3b 0d 09 09 69 66 28 6a |tance[i]|;...if(j|
|00002fa0| 3c 30 29 6a 3d 30 3b 0d | 09 09 69 66 28 6a 3e 32 |<0)j=0;.|..if(j>2|
|00002fb0| 35 35 29 6a 3d 32 35 35 | 3b 0d 09 09 73 70 72 69 |55)j=255|;...spri|
|00002fc0| 6e 74 66 28 73 74 72 69 | 6e 67 2c 22 25 30 32 78 |ntf(stri|ng,"%02x|
|00002fd0| 22 2c 6a 29 3b 0d 09 09 | 68 65 78 5b 69 5d 3d 2a |",j);...|hex[i]=*|
|00002fe0| 28 75 6e 73 69 67 6e 65 | 64 20 73 68 6f 72 74 20 |(unsigne|d short |
|00002ff0| 2a 29 73 74 72 69 6e 67 | 3b 0d 09 7d 0d 09 77 69 |*)string|;..}..wi|
|00003000| 64 74 68 3d 72 65 63 74 | 50 74 72 2d 3e 72 69 67 |dth=rect|Ptr->rig|
|00003010| 68 74 2d 72 65 63 74 50 | 74 72 2d 3e 6c 65 66 74 |ht-rectP|tr->left|
|00003020| 3b 0d 09 62 79 74 65 73 | 3d 28 77 69 64 74 68 2b |;..bytes|=(width+|
|00003030| 31 29 2a 73 69 7a 65 6f | 66 28 2a 77 6f 72 64 29 |1)*sizeo|f(*word)|
|00003040| 3b 0d 09 62 75 66 66 65 | 72 3d 28 75 6e 73 69 67 |;..buffe|r=(unsig|
|00003050| 6e 65 64 20 73 68 6f 72 | 74 20 2a 29 4e 65 77 50 |ned shor|t *)NewP|
|00003060| 74 72 28 62 79 74 65 73 | 29 3b 0d 09 69 66 28 62 |tr(bytes|);..if(b|
|00003070| 75 66 66 65 72 3d 3d 4e | 55 4c 4c 29 50 72 69 6e |uffer==N|ULL)Prin|
|00003080| 74 66 45 78 69 74 28 22 | 25 73 28 25 73 29 3a 20 |tfExit("|%s(%s): |
|00003090| 22 0d 09 09 22 6e 6f 20 | 72 6f 6f 6d 20 66 6f 72 |"..."no |room for|
|000030a0| 20 25 6c 64 20 62 79 74 | 65 20 62 75 66 66 65 72 | %ld byt|e buffer|
|000030b0| 2e 5c 6e 5c 30 30 37 22 | 2c 5f 5f 46 49 4c 45 5f |.\n\007"|,__FILE_|
|000030c0| 5f 2c 66 69 6c 65 6e 61 | 6d 65 2c 62 79 74 65 73 |_,filena|me,bytes|
|000030d0| 29 3b 0d 09 62 75 66 66 | 65 72 33 32 3d 28 75 6e |);..buff|er32=(un|
|000030e0| 73 69 67 6e 65 64 20 73 | 68 6f 72 74 20 2a 29 53 |signed s|hort *)S|
|000030f0| 74 72 69 70 41 64 64 72 | 65 73 73 28 62 75 66 66 |tripAddr|ess(buff|
|00003100| 65 72 29 3b 0d 09 66 6f | 72 28 79 3d 72 65 63 74 |er);..fo|r(y=rect|
|00003110| 50 74 72 2d 3e 74 6f 70 | 3b 79 3c 72 65 63 74 50 |Ptr->top|;y<rectP|
|00003120| 74 72 2d 3e 62 6f 74 74 | 6f 6d 3b 79 2b 2b 29 7b |tr->bott|om;y++){|
|00003130| 0d 09 09 6d 6f 64 65 3d | 74 72 75 65 33 32 62 3b |...mode=|true32b;|
|00003140| 0d 09 09 69 66 28 63 61 | 6e 33 32 29 53 77 61 70 |...if(ca|n32)Swap|
|00003150| 4d 4d 55 4d 6f 64 65 28 | 28 76 6f 69 64 20 2a 29 |MMUMode(|(void *)|
|00003160| 26 6d 6f 64 65 29 3b 0d | 09 09 62 79 74 65 3d 61 |&mode);.|..byte=a|
|00003170| 64 64 72 3b 0d 09 09 77 | 6f 72 64 3d 62 75 66 66 |ddr;...w|ord=buff|
|00003180| 65 72 33 32 3b 0d 09 09 | 66 6f 72 28 69 3d 30 3b |er32;...|for(i=0;|
|00003190| 69 3c 77 69 64 74 68 3b | 69 2b 2b 29 20 2a 77 6f |i<width;|i++) *wo|
|000031a0| 72 64 2b 2b 20 3d 20 68 | 65 78 5b 2a 62 79 74 65 |rd++ = h|ex[*byte|
|000031b0| 2b 2b 5d 3b 0d 09 09 2a | 77 6f 72 64 3d 30 3b 0d |++];...*|word=0;.|
|000031c0| 09 09 69 66 28 63 61 6e | 33 32 29 53 77 61 70 4d |..if(can|32)SwapM|
|000031d0| 4d 55 4d 6f 64 65 28 28 | 76 6f 69 64 20 2a 29 26 |MUMode((|void *)&|
|000031e0| 6d 6f 64 65 29 3b 0d 09 | 09 66 70 72 69 6e 74 66 |mode);..|.fprintf|
|000031f0| 28 66 69 6c 65 2c 22 25 | 73 5c 6e 22 2c 28 63 68 |(file,"%|s\n",(ch|
|00003200| 61 72 20 2a 29 62 75 66 | 66 65 72 29 3b 0d 09 09 |ar *)buf|fer);...|
|00003210| 61 64 64 72 2b 3d 72 6f | 77 42 79 74 65 73 3b 0d |addr+=ro|wBytes;.|
|00003220| 09 7d 0d 09 48 53 65 74 | 53 74 61 74 65 28 28 48 |.}..HSet|State((H|
|00003230| 61 6e 64 6c 65 29 70 6d | 2c 70 6d 53 74 61 74 65 |andle)pm|,pmState|
|00003240| 29 3b 0d 09 44 69 73 70 | 6f 73 50 74 72 28 28 50 |);..Disp|osPtr((P|
|00003250| 74 72 29 62 75 66 66 65 | 72 29 3b 0d 09 66 70 72 |tr)buffe|r);..fpr|
|00003260| 69 6e 74 66 28 66 69 6c | 65 2c 0d 09 09 22 25 25 |intf(fil|e,..."%%|
|00003270| 25 25 54 72 61 69 6c 65 | 72 5c 6e 22 0d 09 09 22 |%%Traile|r\n"..."|
|00003280| 67 72 65 73 74 6f 72 65 | 5c 6e 22 0d 09 09 22 65 |grestore|\n"..."e|
|00003290| 6e 64 5c 6e 22 0d 09 09 | 22 73 68 6f 77 70 61 67 |nd\n"...|"showpag|
|000032a0| 65 5c 6e 22 0d 09 09 22 | 25 25 25 25 45 4f 46 5c |e\n"..."|%%%%EOF\|
|000032b0| 6e 22 29 3b 0d 09 66 63 | 6c 6f 73 65 28 66 69 6c |n");..fc|lose(fil|
|000032c0| 65 29 3b 0d 09 53 65 74 | 46 69 6c 65 49 6e 66 6f |e);..Set|FileInfo|
|000032d0| 28 66 69 6c 65 6e 61 6d | 65 2c 54 59 50 45 2c 43 |(filenam|e,TYPE,C|
|000032e0| 52 45 41 54 4f 52 29 3b | 0d 0d 09 2f 2f 20 43 72 |REATOR);|...// Cr|
|000032f0| 65 61 74 65 20 66 69 6c | 65 27 73 20 72 65 73 6f |eate fil|e's reso|
|00003300| 75 72 63 65 20 66 6f 72 | 6b 3a 20 61 20 50 49 43 |urce for|k: a PIC|
|00003310| 54 20 72 65 73 6f 75 72 | 63 65 2e 0d 09 69 66 28 |T resour|ce...if(|
|00003320| 31 29 7b 0d 09 09 2f 2f | 20 61 64 64 20 50 49 43 |1){...//| add PIC|
|00003330| 54 20 72 65 73 6f 75 72 | 63 65 20 74 6f 20 66 69 |T resour|ce to fi|
|00003340| 6c 65 0d 09 09 46 53 53 | 70 65 63 20 73 70 65 63 |le...FSS|pec spec|
|00003350| 3b 0d 09 09 6c 6f 6e 67 | 20 76 65 72 73 69 6f 6e |;...long| version|
|00003360| 3b 0d 0d 09 09 70 69 78 | 65 6c 53 69 7a 65 3d 38 |;....pix|elSize=8|
|00003370| 3b 0d 09 09 63 74 3d 47 | 65 74 43 54 61 62 6c 65 |;...ct=G|etCTable|
|00003380| 28 70 69 78 65 6c 53 69 | 7a 65 2b 33 32 29 3b 09 |(pixelSi|ze+32);.|
|00003390| 2f 2f 20 67 72 61 79 20 | 72 61 6d 70 0d 09 09 63 |// gray |ramp...c|
|000033a0| 6f 6c 6f 72 53 70 65 63 | 50 74 72 3d 28 2a 2a 63 |olorSpec|Ptr=(**c|
|000033b0| 74 29 2e 63 74 54 61 62 | 6c 65 3b 0d 09 09 69 66 |t).ctTab|le;...if|
|000033c0| 28 72 65 66 6c 65 63 74 | 61 6e 63 65 3d 3d 4e 55 |(reflect|ance==NU|
|000033d0| 4c 4c 29 7b 0d 09 09 09 | 66 6f 72 28 69 3d 30 3b |LL){....|for(i=0;|
|000033e0| 69 3c 3d 28 2a 2a 63 74 | 29 2e 63 74 53 69 7a 65 |i<=(**ct|).ctSize|
|000033f0| 3b 69 2b 2b 29 7b 0d 09 | 09 09 09 63 6f 6c 6f 72 |;i++){..|...color|
|00003400| 53 70 65 63 50 74 72 2d | 3e 72 67 62 2e 72 65 64 |SpecPtr-|>rgb.red|
|00003410| 3d 63 6f 6c 6f 72 53 70 | 65 63 50 74 72 2d 3e 72 |=colorSp|ecPtr->r|
|00003420| 67 62 2e 67 72 65 65 6e | 3d 63 6f 6c 6f 72 53 70 |gb.green|=colorSp|
|00003430| 65 63 50 74 72 2d 3e 72 | 67 62 2e 62 6c 75 65 0d |ecPtr->r|gb.blue.|
|00003440| 09 09 09 09 09 3d 30 78 | 66 66 66 66 4c 2a 69 2f |.....=0x|ffffL*i/|
|00003450| 28 2a 2a 63 74 29 2e 63 | 74 53 69 7a 65 3b 0d 09 |(**ct).c|tSize;..|
|00003460| 09 09 09 63 6f 6c 6f 72 | 53 70 65 63 50 74 72 2b |...color|SpecPtr+|
|00003470| 2b 3b 0d 09 09 09 7d 0d | 09 09 7d 65 6c 73 65 7b |+;....}.|..}else{|
|00003480| 0d 09 09 09 66 6f 72 28 | 69 3d 30 3b 69 3c 3d 28 |....for(|i=0;i<=(|
|00003490| 2a 2a 63 74 29 2e 63 74 | 53 69 7a 65 3b 69 2b 2b |**ct).ct|Size;i++|
|000034a0| 29 7b 0d 09 09 09 09 63 | 6f 6c 6f 72 53 70 65 63 |){.....c|olorSpec|
|000034b0| 50 74 72 2d 3e 72 67 62 | 2e 72 65 64 3d 63 6f 6c |Ptr->rgb|.red=col|
|000034c0| 6f 72 53 70 65 63 50 74 | 72 2d 3e 72 67 62 2e 67 |orSpecPt|r->rgb.g|
|000034d0| 72 65 65 6e 3d 63 6f 6c | 6f 72 53 70 65 63 50 74 |reen=col|orSpecPt|
|000034e0| 72 2d 3e 72 67 62 2e 62 | 6c 75 65 0d 09 09 09 09 |r->rgb.b|lue.....|
|000034f0| 09 3d 30 78 66 66 66 66 | 4c 2a 72 65 66 6c 65 63 |.=0xffff|L*reflec|
|00003500| 74 61 6e 63 65 5b 69 5d | 3b 0d 09 09 09 09 63 6f |tance[i]|;.....co|
|00003510| 6c 6f 72 53 70 65 63 50 | 74 72 2b 2b 3b 0d 09 09 |lorSpecP|tr++;...|
|00003520| 09 7d 0d 09 09 7d 0d 09 | 09 70 69 63 3d 50 69 78 |.}...}..|.pic=Pix|
|00003530| 4d 61 70 54 6f 50 69 63 | 74 75 72 65 28 70 6d 2c |MapToPic|ture(pm,|
|00003540| 72 65 63 74 50 74 72 2c | 70 69 78 65 6c 53 69 7a |rectPtr,|pixelSiz|
|00003550| 65 2c 63 74 29 3b 0d 09 | 09 44 69 73 70 6f 73 65 |e,ct);..|.Dispose|
|00003560| 43 54 61 62 6c 65 28 63 | 74 29 3b 0d 09 09 6f 6c |CTable(c|t);...ol|
|00003570| 64 52 65 73 46 69 6c 65 | 3d 43 75 72 52 65 73 46 |dResFile|=CurResF|
|00003580| 69 6c 65 28 29 3b 0d 09 | 09 65 72 72 6f 72 3d 48 |ile();..|.error=H|
|00003590| 47 65 74 56 6f 6c 28 4e | 55 4c 4c 2c 26 73 70 65 |GetVol(N|ULL,&spe|
|000035a0| 63 2e 76 52 65 66 4e 75 | 6d 2c 26 73 70 65 63 2e |c.vRefNu|m,&spec.|
|000035b0| 70 61 72 49 44 29 3b 0d | 09 09 73 74 72 63 70 79 |parID);.|..strcpy|
|000035c0| 28 28 63 68 61 72 20 2a | 29 73 70 65 63 2e 6e 61 |((char *|)spec.na|
|000035d0| 6d 65 2c 66 69 6c 65 6e | 61 6d 65 29 3b 0d 09 09 |me,filen|ame);...|
|000035e0| 63 32 70 73 74 72 28 28 | 63 68 61 72 20 2a 29 73 |c2pstr((|char *)s|
|000035f0| 70 65 63 2e 6e 61 6d 65 | 29 3b 0d 09 09 47 65 73 |pec.name|);...Ges|
|00003600| 74 61 6c 74 28 67 65 73 | 74 61 6c 74 53 79 73 74 |talt(ges|taltSyst|
|00003610| 65 6d 56 65 72 73 69 6f | 6e 2c 26 76 65 72 73 69 |emVersio|n,&versi|
|00003620| 6f 6e 29 3b 0d 09 09 69 | 66 28 76 65 72 73 69 6f |on);...i|f(versio|
|00003630| 6e 3e 3d 30 78 37 30 30 | 29 7b 0d 09 09 09 46 53 |n>=0x700|){....FS|
|00003640| 70 43 72 65 61 74 65 52 | 65 73 46 69 6c 65 28 26 |pCreateR|esFile(&|
|00003650| 73 70 65 63 2c 43 52 45 | 41 54 4f 52 2c 54 59 50 |spec,CRE|ATOR,TYP|
|00003660| 45 2c 73 6d 52 6f 6d 61 | 6e 29 3b 0d 09 09 09 72 |E,smRoma|n);....r|
|00003670| 65 73 46 69 6c 65 3d 46 | 53 70 4f 70 65 6e 52 65 |esFile=F|SpOpenRe|
|00003680| 73 46 69 6c 65 28 26 73 | 70 65 63 2c 66 73 52 64 |sFile(&s|pec,fsRd|
|00003690| 57 72 50 65 72 6d 29 3b | 0d 09 09 7d 65 6c 73 65 |WrPerm);|...}else|
|000036a0| 7b 0d 09 09 09 48 43 72 | 65 61 74 65 52 65 73 46 |{....HCr|eateResF|
|000036b0| 69 6c 65 28 73 70 65 63 | 2e 76 52 65 66 4e 75 6d |ile(spec|.vRefNum|
|000036c0| 2c 73 70 65 63 2e 70 61 | 72 49 44 2c 73 70 65 63 |,spec.pa|rID,spec|
|000036d0| 2e 6e 61 6d 65 29 3b 0d | 09 09 09 72 65 73 46 69 |.name);.|...resFi|
|000036e0| 6c 65 3d 48 4f 70 65 6e | 52 65 73 46 69 6c 65 28 |le=HOpen|ResFile(|
|000036f0| 73 70 65 63 2e 76 52 65 | 66 4e 75 6d 2c 73 70 65 |spec.vRe|fNum,spe|
|00003700| 63 2e 70 61 72 49 44 2c | 73 70 65 63 2e 6e 61 6d |c.parID,|spec.nam|
|00003710| 65 2c 66 73 52 64 57 72 | 50 65 72 6d 29 3b 0d 09 |e,fsRdWr|Perm);..|
|00003720| 09 7d 0d 09 09 69 66 28 | 72 65 73 46 69 6c 65 3d |.}...if(|resFile=|
|00003730| 3d 2d 31 29 70 72 69 6e | 74 66 28 22 25 73 20 25 |=-1)prin|tf("%s %|
|00003740| 64 3a 20 4f 70 65 6e 52 | 65 73 46 69 6c 65 20 65 |d: OpenR|esFile e|
|00003750| 72 72 6f 72 20 25 64 5c | 6e 22 2c 5f 5f 46 49 4c |rror %d\|n",__FIL|
|00003760| 45 5f 5f 2c 5f 5f 4c 49 | 4e 45 5f 5f 2c 52 65 73 |E__,__LI|NE__,Res|
|00003770| 45 72 72 6f 72 28 29 29 | 3b 0d 09 09 65 6c 73 65 |Error())|;...else|
|00003780| 7b 0d 09 09 09 41 64 64 | 52 65 73 6f 75 72 63 65 |{....Add|Resource|
|00003790| 28 28 48 61 6e 64 6c 65 | 29 70 69 63 2c 27 50 49 |((Handle|)pic,'PI|
|000037a0| 43 54 27 2c 32 35 36 2c | 22 5c 70 50 72 65 76 69 |CT',256,|"\pPrevi|
|000037b0| 65 77 22 29 3b 0d 09 09 | 09 55 73 65 52 65 73 46 |ew");...|.UseResF|
|000037c0| 69 6c 65 28 6f 6c 64 52 | 65 73 46 69 6c 65 29 3b |ile(oldR|esFile);|
|000037d0| 0d 09 09 09 43 6c 6f 73 | 65 52 65 73 46 69 6c 65 |....Clos|eResFile|
|000037e0| 28 72 65 73 46 69 6c 65 | 29 3b 0d 09 09 7d 0d 09 |(resFile|);...}..|
|000037f0| 7d 0d 7d 0d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |}.}.....|........|
|00003800| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00003810| 31 30 31 30 31 30 31 30 | 31 30 31 30 31 30 31 30 |10101010|10101010|
|00003820| 31 30 31 30 31 30 31 66 | 65 66 65 66 65 66 65 66 |1010101f|efefefef|
|00003830| 0d 57 69 6e 64 6f 77 54 | 6f 45 50 53 2e 63 02 00 |.WindowT|oEPS.c..|
|00003840| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 28 06 60 |..TEXTCW|IE...(.`|
|00003850| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 28 06 60 |..TEXTCW|IE...(.`|
|00003860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003870| 00 00 aa e5 ef a4 00 00 | 37 75 00 00 01 9a 31 30 |........|7u....10|
|00003880| 31 30 31 30 31 30 31 30 | 31 30 31 30 31 30 31 30 |10101010|10101010|
|00003890| 31 30 31 30 31 30 31 30 | 31 30 31 30 31 30 31 30 |10101010|10101010|
|000038a0| 31 30 31 30 31 30 31 30 | 31 30 31 30 31 30 31 30 |10101010|10101010|
|000038b0| 31 30 31 30 31 30 31 30 | 31 30 31 30 31 30 31 30 |10101010|10101010|
|000038c0| 31 30 31 30 31 30 31 30 | 31 30 31 30 31 30 31 30 |10101010|10101010|
|000038d0| 31 30 31 30 31 30 31 30 | 31 30 31 30 31 30 31 30 |10101010|10101010|
|000038e0| 31 30 31 30 31 30 31 30 | 31 30 31 30 31 30 31 30 |10101010|10101010|
|000038f0| 31 30 31 30 31 30 31 30 | 31 30 31 30 31 30 31 30 |10101010|10101010|
|00003900| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00003910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003920| 00 00 00 00 00 00 00 03 | 00 04 00 3a 00 4d 02 68 |........|...:.M.h|
|00003930| 02 c5 00 3a 00 4d 02 68 | 02 c5 ac 3c a3 c3 00 00 |...:.M.h|...<....|
|00003940| 1d e4 00 00 1d e4 00 00 | 1c 0b 00 00 00 00 00 04 |........|........|
|00003950| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00003960| 00 00 00 46 01 99 5f e8 | 21 ca 00 00 00 1c 00 46 |...F.._.|!......F|
|00003970| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00003980| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00003990| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000039a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+