home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-01-17 | 22.3 KB | [TEXT/QED1] |
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: CGM.docs
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Jan 17 09:41:19 1990, modified Wed Jan 17 09:41:19 1990, creator 'QED1', type ASCII, 22090 bytes "CGM.docs" , at 0x56ca 406 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 |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [QED1] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 43 47 4d 2e 64 6f | 63 73 00 00 00 00 00 00 |..CGM.do|cs......|
|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 51 45 44 | 31 01 00 00 00 00 00 00 |.TEXTQED|1.......|
|00000050| 00 00 00 00 00 56 4a 00 | 00 01 96 a1 da 34 8f a1 |.....VJ.|.....4..|
|00000060| da 34 8f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.4......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 06 f9 00 00 |........|........|
|00000080| 54 68 69 73 20 69 73 20 | 61 20 62 72 69 65 66 20 |This is |a brief |
|00000090| 73 75 6d 6d 61 72 79 20 | 6f 66 20 74 68 65 20 64 |summary |of the d|
|000000a0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 74 68 61 |ocumenta|tion tha|
|000000b0| 74 20 63 61 6d 65 20 77 | 69 74 68 20 43 67 6d 4d |t came w|ith CgmM|
|000000c0| 61 6b 65 72 20 0d 66 72 | 6f 6d 20 4c 41 4e 4c 2e |aker .fr|om LANL.|
|000000d0| 20 49 20 68 61 76 65 20 | 62 61 73 69 63 61 6c 6c | I have |basicall|
|000000e0| 79 20 63 6f 70 69 65 64 | 20 74 68 65 69 72 20 64 |y copied| their d|
|000000f0| 6f 63 75 6d 65 6e 74 20 | 62 75 74 20 6c 65 66 74 |ocument |but left|
|00000100| 20 6f 75 74 20 74 68 65 | 20 0d 70 69 63 74 75 72 | out the| .pictur|
|00000110| 65 73 2e 20 20 4f 6e 65 | 20 77 61 72 6e 69 6e 67 |es. One| warning|
|00000120| 20 63 6f 6d 6d 65 6e 74 | 2e 20 20 41 70 70 61 72 | comment|. Appar|
|00000130| 65 6e 74 6c 79 20 43 67 | 6d 4d 61 6b 65 72 20 6f |ently Cg|mMaker o|
|00000140| 6e 6c 79 20 75 73 65 73 | 20 61 20 73 75 62 73 65 |nly uses| a subse|
|00000150| 74 20 0d 6f 66 20 74 68 | 65 20 43 47 4d 20 73 74 |t .of th|e CGM st|
|00000160| 61 6e 64 61 72 64 2e 20 | 20 54 68 65 72 65 66 6f |andard. | Therefo|
|00000170| 72 65 20 61 20 67 65 6e | 65 72 61 6c 20 43 47 4d |re a gen|eral CGM|
|00000180| 20 66 69 6c 65 20 6d 61 | 79 20 63 6f 6e 66 75 73 | file ma|y confus|
|00000190| 65 20 74 68 65 20 0d 70 | 72 6f 67 72 61 6d 2e 20 |e the .p|rogram. |
|000001a0| 20 49 74 20 61 6c 73 6f | 20 70 72 6f 64 75 63 65 | It also| produce|
|000001b0| 73 20 61 20 6e 6f 6e 73 | 74 61 6e 64 61 72 64 20 |s a nons|tandard |
|000001c0| 68 65 61 64 65 72 20 61 | 74 20 74 68 65 20 62 65 |header a|t the be|
|000001d0| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 74 68 65 20 0d |ginning |of the .|
|000001e0| 43 47 4d 20 66 69 6c 65 | 2e 0d 0d 43 67 6d 4d 61 |CGM file|...CgmMa|
|000001f0| 6b 65 72 20 20 76 2e 20 | 31 2e 30 32 0d 0d 49 6e |ker v. |1.02..In|
|00000200| 74 72 6f 64 75 63 74 69 | 6f 6e 0d 0d 43 67 6d 4d |troducti|on..CgmM|
|00000210| 61 6b 65 72 20 63 6f 6e | 76 65 72 74 73 20 62 65 |aker con|verts be|
|00000220| 74 77 65 65 6e 20 76 61 | 72 69 6f 75 73 20 4d 61 |tween va|rious Ma|
|00000230| 63 69 6e 74 6f 73 68 20 | 64 6f 63 75 6d 65 6e 74 |cintosh |document|
|00000240| 20 66 6f 72 6d 61 74 73 | 20 61 6e 64 20 74 68 65 | formats| and the|
|00000250| 20 43 47 4d 20 0d 66 6f | 72 6d 61 74 20 63 75 72 | CGM .fo|rmat cur|
|00000260| 72 65 6e 74 6c 79 20 62 | 65 69 6e 67 20 69 6d 70 |rently b|eing imp|
|00000270| 6c 65 6d 65 6e 74 65 64 | 20 61 74 20 4c 41 4e 4c |lemented| at LANL|
|00000280| 2e 20 20 49 74 20 61 6c | 6c 6f 77 73 20 4c 41 4e |. It al|lows LAN|
|00000290| 4c 20 75 73 65 72 73 20 | 0d 73 65 76 65 72 61 6c |L users |.several|
|000002a0| 20 67 72 61 70 68 69 63 | 20 65 64 69 74 69 6e 67 | graphic| editing|
|000002b0| 20 6f 70 74 69 6f 6e 73 | 2e 20 20 0d 0d 50 69 63 | options|. ..Pic|
|000002c0| 74 75 72 65 73 20 6f 72 | 20 67 72 61 70 68 73 20 |tures or| graphs |
|000002d0| 6d 61 79 20 62 65 20 69 | 6d 70 6f 72 74 65 64 20 |may be i|mported |
|000002e0| 66 72 6f 6d 20 4c 41 4e | 4c 27 73 20 6e 65 74 77 |from LAN|L's netw|
|000002f0| 6f 72 6b 20 72 65 73 6f | 75 72 63 65 73 2c 20 65 |ork reso|urces, e|
|00000300| 64 69 74 65 64 20 0d 6f | 72 20 61 6e 6e 6f 74 61 |dited .o|r annota|
|00000310| 74 65 64 20 28 6f 72 20 | 63 6f 6d 70 6f 73 69 74 |ted (or |composit|
|00000320| 65 64 20 77 69 74 68 20 | 6f 74 68 65 72 20 4d 61 |ed with |other Ma|
|00000330| 63 69 6e 74 6f 73 68 20 | 61 72 74 20 77 6f 72 6b |cintosh |art work|
|00000340| 29 20 77 69 74 68 20 0d | 63 6f 6d 6d 65 72 63 69 |) with .|commerci|
|00000350| 61 6c 20 4d 61 63 69 6e | 74 6f 73 68 20 73 6f 66 |al Macin|tosh sof|
|00000360| 74 77 61 72 65 20 61 6e | 64 20 65 78 70 6f 72 74 |tware an|d export|
|00000370| 65 64 20 62 61 63 6b 20 | 74 6f 20 74 68 65 20 6e |ed back |to the n|
|00000380| 65 74 77 6f 72 6b 20 66 | 6f 72 20 63 6f 6c 6f 72 |etwork f|or color|
|00000390| 20 0d 73 6c 69 64 65 20 | 67 65 6e 65 72 61 74 69 | .slide |generati|
|000003a0| 6f 6e 2c 20 61 72 63 68 | 69 76 61 6c 20 73 74 6f |on, arch|ival sto|
|000003b0| 72 61 67 65 2c 20 6f 72 | 20 6f 74 68 65 72 20 68 |rage, or| other h|
|000003c0| 61 72 64 63 6f 70 79 2e | 0d 0d 47 72 61 70 68 69 |ardcopy.|..Graphi|
|000003d0| 63 20 69 6c 6c 75 73 74 | 72 61 74 69 6f 6e 73 20 |c illust|rations |
|000003e0| 63 61 6e 20 62 65 20 65 | 6e 74 69 72 65 6c 79 20 |can be e|ntirely |
|000003f0| 63 6f 6d 70 6f 73 65 64 | 20 6f 6e 20 74 68 65 20 |composed| on the |
|00000400| 4d 61 63 69 6e 74 6f 73 | 68 2c 20 0d 63 6f 6e 76 |Macintos|h, .conv|
|00000410| 65 72 74 65 64 20 74 6f | 20 74 68 65 20 43 47 4d |erted to| the CGM|
|00000420| 20 66 6f 72 6d 61 74 20 | 61 6e 64 20 73 65 6e 74 | format |and sent|
|00000430| 20 74 6f 20 74 68 65 20 | 6e 65 74 77 6f 72 6b 27 | to the |network'|
|00000440| 73 20 63 6f 6c 6f 72 20 | 73 6c 69 64 65 20 72 65 |s color |slide re|
|00000450| 63 6f 72 64 65 72 73 2e | 0d 0d 43 6f 6c 6f 72 20 |corders.|..Color |
|00000460| 69 6c 6c 75 73 74 72 61 | 74 69 6f 6e 73 20 63 61 |illustra|tions ca|
|00000470| 6e 20 62 65 20 69 6d 70 | 6f 72 74 65 64 20 74 6f |n be imp|orted to|
|00000480| 20 74 68 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 61 | the Mac|intosh a|
|00000490| 6e 64 20 63 6f 6e 76 65 | 72 74 65 64 20 74 6f 20 |nd conve|rted to |
|000004a0| 0d 67 72 61 79 20 73 63 | 61 6c 65 20 66 6f 72 20 |.gray sc|ale for |
|000004b0| 69 6e 63 6c 75 73 69 6f | 6e 20 69 6e 74 6f 20 6d |inclusio|n into m|
|000004c0| 6f 6e 6f 63 68 72 6f 6d | 65 20 72 65 70 6f 72 74 |onochrom|e report|
|000004d0| 73 20 77 69 74 68 20 64 | 65 73 6b 20 74 6f 70 20 |s with d|esk top |
|000004e0| 70 75 62 6c 69 73 68 69 | 6e 67 20 0d 74 6f 6f 6c |publishi|ng .tool|
|000004f0| 73 2e 0d 0d 4d 6f 73 74 | 20 4d 61 63 69 6e 74 6f |s...Most| Macinto|
|00000500| 73 68 20 61 70 70 69 6c | 63 61 74 69 6f 6e 73 20 |sh appil|cations |
|00000510| 73 75 70 70 6f 72 74 20 | 41 70 70 6c 65 27 73 20 |support |Apple's |
|00000520| 50 49 43 54 20 66 6f 72 | 6d 61 74 20 66 6f 72 20 |PICT for|mat for |
|00000530| 65 78 63 68 61 6e 67 69 | 6e 67 20 0d 67 72 61 70 |exchangi|ng .grap|
|00000540| 68 69 63 20 64 61 74 61 | 20 77 69 74 68 20 6f 74 |hic data| with ot|
|00000550| 68 65 72 20 4d 61 63 69 | 6e 74 6f 73 68 20 61 70 |her Maci|ntosh ap|
|00000560| 70 6c 69 63 61 74 69 6f | 6e 73 2e 20 20 53 6f 6d |plicatio|ns. Som|
|00000570| 65 20 65 78 61 6d 70 6c | 65 73 20 61 72 65 20 4d |e exampl|es are M|
|00000580| 61 63 44 72 61 77 2c 20 | 0d 4d 61 63 44 72 61 66 |acDraw, |.MacDraf|
|00000590| 74 2c 20 4d 69 63 72 6f | 73 6f 66 74 20 43 68 61 |t, Micro|soft Cha|
|000005a0| 72 74 2c 20 43 72 69 63 | 6b 65 74 20 47 72 61 70 |rt, Cric|ket Grap|
|000005b0| 68 2c 20 50 6f 77 65 72 | 20 50 6f 69 6e 74 2c 20 |h, Power| Point, |
|000005c0| 43 72 69 63 6b 65 74 20 | 50 72 65 73 65 6e 74 73 |Cricket |Presents|
|000005d0| 2c 20 0d 50 69 78 65 6c | 50 61 69 6e 74 2c 20 4d |, .Pixel|Paint, M|
|000005e0| 6f 64 65 72 6e 20 41 72 | 74 69 73 74 2c 20 61 6e |odern Ar|tist, an|
|000005f0| 64 20 65 74 63 2e 20 20 | 49 66 20 79 6f 75 20 77 |d etc. |If you w|
|00000600| 61 6e 74 20 74 6f 20 65 | 64 69 74 20 6f 72 20 63 |ant to e|dit or c|
|00000610| 72 65 61 74 65 20 77 69 | 74 68 20 0d 61 6e 79 20 |reate wi|th .any |
|00000620| 6f 66 20 74 68 65 73 65 | 20 61 70 70 6c 69 63 61 |of these| applica|
|00000630| 74 69 6f 6e 73 2c 20 79 | 6f 75 72 20 67 72 61 70 |tions, y|our grap|
|00000640| 68 69 63 20 6e 65 65 64 | 73 20 74 6f 20 62 65 20 |hic need|s to be |
|00000650| 69 6e 20 50 49 43 54 20 | 66 6f 72 6d 20 6f 72 20 |in PICT |form or |
|00000660| 61 20 0d 73 70 65 63 69 | 61 6c 20 66 6f 72 6d 20 |a .speci|al form |
|00000670| 66 6f 72 20 65 61 63 68 | 20 61 70 70 6c 69 63 61 |for each| applica|
|00000680| 74 69 6f 6e 2e 0d 0d 4d | 61 6e 79 20 73 63 61 6e |tion...M|any scan|
|00000690| 6e 65 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |ner appl|ications|
|000006a0| 2c 20 70 69 63 74 75 72 | 65 20 65 64 69 74 6f 72 |, pictur|e editor|
|000006b0| 73 2c 20 61 6e 64 20 64 | 65 73 6b 74 6f 70 20 70 |s, and d|esktop p|
|000006c0| 75 62 6c 69 73 68 69 6e | 67 20 74 6f 6f 6c 73 20 |ublishin|g tools |
|000006d0| 0d 6f 6e 20 74 68 65 20 | 4d 61 63 69 6e 74 6f 73 |.on the |Macintos|
|000006e0| 68 20 73 75 70 70 6f 72 | 74 20 74 68 65 20 54 49 |h suppor|t the TI|
|000006f0| 46 46 20 66 6f 72 6d 61 | 74 3b 20 65 2e 67 2e 20 |FF forma|t; e.g. |
|00000700| 41 62 61 74 6f 6e 20 73 | 63 61 6e 6e 65 72 73 2c |Abaton s|canners,|
|00000710| 20 49 6d 61 67 65 20 0d | 53 74 75 64 69 6f 2c 20 | Image .|Studio, |
|00000720| 44 69 67 69 74 61 6c 20 | 44 61 72 6b 72 6f 6f 6d |Digital |Darkroom|
|00000730| 2c 20 50 61 67 65 4d 61 | 6b 65 72 2c 20 61 6e 64 |, PageMa|ker, and|
|00000740| 20 65 74 63 2e 20 20 43 | 75 72 72 65 6e 74 6c 79 | etc. C|urrently|
|00000750| 2c 20 6d 6f 73 74 20 61 | 72 65 20 0d 6d 6f 6e 6f |, most a|re .mono|
|00000760| 63 68 72 6f 6d 65 20 62 | 75 74 20 74 68 65 20 73 |chrome b|ut the s|
|00000770| 74 61 6e 64 61 72 64 20 | 69 73 20 62 65 69 6e 67 |tandard |is being|
|00000780| 20 65 6e 68 61 6e 63 65 | 64 20 66 6f 72 20 63 6f | enhance|d for co|
|00000790| 6c 6f 72 2e 20 20 0d 0d | 54 68 65 20 73 74 72 61 |lor. ..|The stra|
|000007a0| 74 65 67 79 20 69 6e 20 | 43 67 6d 4d 61 6b 65 72 |tegy in |CgmMaker|
|000007b0| 20 69 73 20 74 6f 20 63 | 6f 6e 76 65 72 74 20 69 | is to c|onvert i|
|000007c0| 6e 63 6f 6d 69 6e 67 20 | 66 6f 72 6d 61 74 73 20 |ncoming |formats |
|000007d0| 28 54 49 46 46 2c 20 43 | 47 4d 2c 20 72 61 77 29 |(TIFF, C|GM, raw)|
|000007e0| 20 0d 74 6f 20 50 49 43 | 54 20 73 6f 20 74 68 61 | .to PIC|T so tha|
|000007f0| 74 20 74 68 65 79 20 63 | 61 6e 20 62 65 20 65 64 |t they c|an be ed|
|00000800| 69 74 65 64 20 77 69 74 | 68 20 76 61 72 69 6f 75 |ited wit|h variou|
|00000810| 73 20 63 6f 6d 6d 65 72 | 63 69 61 6c 6c 79 20 61 |s commer|cially a|
|00000820| 76 61 69 6c 61 62 6c 65 | 20 0d 74 6f 6f 6c 73 20 |vailable| .tools |
|00000830| 61 6e 64 20 74 6f 20 63 | 6f 6e 76 65 72 74 20 50 |and to c|onvert P|
|00000840| 49 43 54 20 74 6f 20 43 | 47 4d 20 73 6f 20 74 68 |ICT to C|GM so th|
|00000850| 61 74 20 69 74 20 6d 61 | 79 20 62 65 20 73 65 6e |at it ma|y be sen|
|00000860| 74 20 74 6f 20 4c 41 4e | 4c 27 73 20 0d 6e 65 74 |t to LAN|L's .net|
|00000870| 77 6f 72 6b 20 66 6f 72 | 20 68 61 72 64 20 63 6f |work for| hard co|
|00000880| 70 79 2e 0d 0d 43 67 6d | 4d 61 6b 65 72 20 61 6c |py...Cgm|Maker al|
|00000890| 6c 6f 77 73 20 61 20 75 | 73 65 72 20 74 6f 20 69 |lows a u|ser to i|
|000008a0| 6d 70 6f 72 74 20 61 20 | 43 47 4d 20 66 69 6c 65 |mport a |CGM file|
|000008b0| 20 66 72 6f 6d 20 74 68 | 65 20 6e 65 74 77 6f 72 | from th|e networ|
|000008c0| 6b 2c 20 63 68 61 6e 67 | 65 20 69 74 20 0d 74 6f |k, chang|e it .to|
|000008d0| 20 50 49 43 54 20 61 73 | 20 69 6c 6c 75 73 74 72 | PICT as| illustr|
|000008e0| 61 74 65 64 20 6f 6e 20 | 74 68 65 20 6c 65 66 74 |ated on |the left|
|000008f0| 2c 20 65 64 69 74 20 69 | 74 20 77 69 74 68 20 50 |, edit i|t with P|
|00000900| 69 78 65 6c 50 61 69 6e | 74 2c 20 73 61 76 65 20 |ixelPain|t, save |
|00000910| 69 74 20 74 6f 20 0d 50 | 49 43 54 2c 20 63 6f 6e |it to .P|ICT, con|
|00000920| 76 65 72 74 20 69 74 20 | 62 61 63 6b 20 74 6f 20 |vert it |back to |
|00000930| 43 47 4d 20 61 6e 64 20 | 73 65 6e 64 20 69 74 20 |CGM and |send it |
|00000940| 74 6f 20 50 61 67 65 73 | 20 66 6f 72 20 61 20 63 |to Pages| for a c|
|00000950| 6f 6c 6f 72 20 73 6c 69 | 64 65 2e 0d 0d 50 49 43 |olor sli|de...PIC|
|00000960| 54 20 64 61 74 61 20 63 | 61 6e 20 62 65 20 73 61 |T data c|an be sa|
|00000970| 76 65 64 20 61 73 20 72 | 61 77 20 64 61 74 61 20 |ved as r|aw data |
|00000980| 28 61 20 72 65 63 74 61 | 6e 67 75 6c 61 72 20 61 |(a recta|ngular a|
|00000990| 72 72 61 79 20 6f 66 20 | 70 69 78 65 6c 73 20 61 |rray of |pixels a|
|000009a0| 6e 64 20 61 6e 20 0d 61 | 73 73 6f 63 69 61 74 65 |nd an .a|ssociate|
|000009b0| 64 20 63 6f 6c 6f 72 20 | 74 61 62 6c 65 29 20 61 |d color |table) a|
|000009c0| 6e 64 20 76 69 65 77 65 | 64 20 77 69 74 68 20 49 |nd viewe|d with I|
|000009d0| 6d 61 67 65 20 54 6f 6f | 6c 20 28 66 72 6f 6d 20 |mage Too|l (from |
|000009e0| 4e 43 53 41 29 2e 20 20 | 54 68 65 20 72 61 77 20 |NCSA). |The raw |
|000009f0| 0d 64 61 74 61 20 66 72 | 6f 6d 20 49 6d 61 67 65 |.data fr|om Image|
|00000a00| 20 54 6f 6f 6c 20 63 61 | 6e 20 62 65 20 63 6f 6e | Tool ca|n be con|
|00000a10| 76 65 72 74 65 64 20 74 | 6f 20 50 49 43 54 20 62 |verted t|o PICT b|
|00000a20| 79 20 43 67 6d 4d 61 6b | 65 72 2e 0d 0d 0d 44 45 |y CgmMak|er....DE|
|00000a30| 53 4b 54 4f 50 20 50 55 | 42 4c 49 53 48 49 4e 47 |SKTOP PU|BLISHING|
|00000a40| 20 45 58 41 4d 50 4c 45 | 3a 20 20 43 6f 6e 76 65 | EXAMPLE|: Conve|
|00000a50| 72 74 69 6e 67 20 61 20 | 63 6f 6c 6f 72 20 70 69 |rting a |color pi|
|00000a60| 63 74 75 72 65 20 74 6f | 20 61 20 6d 6f 6e 6f 63 |cture to| a monoc|
|00000a70| 68 72 6f 6d 65 20 0d 28 | 67 72 61 79 20 73 63 61 |hrome .(|gray sca|
|00000a80| 6c 65 29 20 70 69 63 74 | 75 72 65 20 66 6f 72 20 |le) pict|ure for |
|00000a90| 75 73 65 20 69 6e 20 6d | 6f 6e 6f 63 68 72 6f 6d |use in m|onochrom|
|00000aa0| 65 20 64 65 73 6b 74 6f | 70 20 64 6f 63 75 6d 65 |e deskto|p docume|
|00000ab0| 6e 74 73 2e 0d 0d 49 66 | 20 79 6f 75 20 68 61 76 |nts...If| you hav|
|00000ac0| 65 20 61 20 63 6f 6c 6f | 72 20 70 69 63 74 75 72 |e a colo|r pictur|
|00000ad0| 65 20 69 6e 20 50 49 43 | 54 20 66 6f 72 6d 61 74 |e in PIC|T format|
|00000ae0| 20 61 6e 64 20 79 6f 75 | 20 77 61 6e 74 20 74 6f | and you| want to|
|00000af0| 20 69 6e 73 65 72 74 20 | 69 74 20 0d 69 6e 74 6f | insert |it .into|
|00000b00| 20 61 20 64 65 73 6b 74 | 6f 70 20 70 75 62 6c 69 | a deskt|op publi|
|00000b10| 73 68 69 6e 67 20 64 6f | 63 75 6d 65 6e 74 2c 20 |shing do|cument, |
|00000b20| 6d 6f 73 74 20 6f 66 20 | 74 68 65 20 61 70 70 6c |most of |the appl|
|00000b30| 69 63 61 74 69 6f 6e 73 | 20 64 6f 20 6e 6f 74 20 |ications| do not |
|00000b40| 0d 70 72 6f 70 65 72 6c | 79 20 63 6f 6e 76 65 72 |.properl|y conver|
|00000b50| 74 20 74 68 65 20 63 6f | 6c 6f 72 20 74 6f 20 67 |t the co|lor to g|
|00000b60| 72 61 79 20 73 63 61 6c | 65 2c 20 43 67 6d 4d 61 |ray scal|e, CgmMa|
|00000b70| 6b 65 72 20 64 6f 65 73 | 21 20 20 46 72 6f 6d 20 |ker does|! From |
|00000b80| 74 68 65 20 0d 66 69 67 | 75 72 65 20 6f 6e 20 70 |the .fig|ure on p|
|00000b90| 61 67 65 20 31 2c 20 43 | 67 6d 4d 61 6b 65 72 20 |age 1, C|gmMaker |
|00000ba0| 63 61 6e 20 72 65 61 64 | 20 74 68 65 20 50 49 43 |can read| the PIC|
|00000bb0| 54 20 66 6f 72 6d 61 74 | 2c 20 73 61 76 65 20 69 |T format|, save i|
|00000bc0| 74 20 61 73 20 61 20 0d | 63 6f 6c 6f 72 20 43 47 |t as a .|color CG|
|00000bd0| 4d 20 64 6f 63 75 6d 65 | 6e 74 2c 20 72 65 61 64 |M docume|nt, read|
|00000be0| 20 74 68 65 20 43 47 4d | 20 64 6f 63 75 6d 65 6e | the CGM| documen|
|00000bf0| 74 20 61 6e 64 20 73 61 | 76 65 20 69 74 20 61 73 |t and sa|ve it as|
|00000c00| 20 61 20 6d 6f 6e 6f 63 | 68 72 6f 6d 65 20 0d 28 | a monoc|hrome .(|
|00000c10| 73 68 61 64 65 73 20 6f | 66 20 67 72 61 79 29 20 |shades o|f gray) |
|00000c20| 64 6f 63 75 6d 65 6e 74 | 2e 20 20 46 6f 72 20 65 |document|. For e|
|00000c30| 78 61 6d 70 6c 65 2c 20 | 63 68 6f 6f 73 65 20 4f |xample, |choose O|
|00000c40| 50 45 4e 2e 2e 2e 20 66 | 72 6f 6d 20 74 68 65 20 |PEN... f|rom the |
|00000c50| 66 69 6c 65 20 0d 6d 65 | 6e 75 2e 20 20 53 65 6c |file .me|nu. Sel|
|00000c60| 65 63 74 20 61 20 64 6f | 63 75 6d 65 6e 74 20 61 |ect a do|cument a|
|00000c70| 6e 64 20 63 6c 69 63 6b | 20 4f 50 45 4e 20 61 6e |nd click| OPEN an|
|00000c80| 64 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 20 77 |d the do|cument w|
|00000c90| 69 6c 6c 20 62 65 20 0d | 64 69 73 70 6c 61 79 65 |ill be .|displaye|
|00000ca0| 64 2e 20 54 6f 20 73 61 | 76 65 20 74 68 65 20 64 |d. To sa|ve the d|
|00000cb0| 6f 63 75 6d 65 6e 74 20 | 69 6e 20 43 47 4d 20 66 |ocument |in CGM f|
|00000cc0| 6f 72 6d 61 74 2c 20 73 | 65 6c 65 63 74 20 53 41 |ormat, s|elect SA|
|00000cd0| 56 45 20 41 53 2e 2e 2e | 20 66 72 6f 6d 20 0d 74 |VE AS...| from .t|
|00000ce0| 68 65 20 46 49 4c 45 20 | 6d 65 6e 75 2c 20 65 6e |he FILE |menu, en|
|00000cf0| 74 65 72 20 61 20 6e 65 | 77 20 64 6f 63 75 6d 65 |ter a ne|w docume|
|00000d00| 6e 74 20 6e 61 6d 65 20 | 61 6e 64 20 63 6c 69 63 |nt name |and clic|
|00000d10| 6b 20 53 61 76 65 2e 20 | 20 54 68 65 20 65 6e 74 |k Save. | The ent|
|00000d20| 69 72 65 20 0d 70 69 63 | 74 75 72 65 20 77 69 6c |ire .pic|ture wil|
|00000d30| 6c 20 62 65 20 64 69 73 | 70 6c 61 79 65 64 20 61 |l be dis|played a|
|00000d40| 6e 64 20 69 66 20 69 74 | 20 69 73 20 63 6f 6d 70 |nd if it| is comp|
|00000d50| 6f 73 65 64 20 65 6e 74 | 69 72 65 6c 79 20 6f 66 |osed ent|irely of|
|00000d60| 20 70 69 78 65 6c 73 2c | 20 0d 79 6f 75 20 77 69 | pixels,| .you wi|
|00000d70| 6c 6c 20 62 65 20 61 73 | 6b 65 64 20 74 6f 20 73 |ll be as|ked to s|
|00000d80| 65 6c 65 63 74 20 74 68 | 65 20 61 72 65 61 20 74 |elect th|e area t|
|00000d90| 6f 20 62 65 20 73 61 76 | 65 64 20 62 79 20 6d 6f |o be sav|ed by mo|
|00000da0| 76 69 6e 67 20 74 68 65 | 20 63 6f 72 6e 65 72 73 |ving the| corners|
|00000db0| 20 0d 6f 66 20 74 68 65 | 20 72 65 63 74 61 6e 67 | .of the| rectang|
|00000dc0| 6c 65 2e 20 20 49 66 20 | 74 68 65 20 70 69 63 74 |le. If |the pict|
|00000dd0| 75 72 65 20 68 61 73 20 | 61 6e 79 20 6f 62 6a 65 |ure has |any obje|
|00000de0| 63 74 20 64 61 74 61 20 | 74 68 65 20 65 6e 74 69 |ct data |the enti|
|00000df0| 72 65 20 70 69 63 74 75 | 72 65 20 0d 77 69 6c 6c |re pictu|re .will|
|00000e00| 20 62 65 20 73 61 76 65 | 64 20 61 6e 64 20 74 68 | be save|d and th|
|00000e10| 65 20 73 65 6c 65 63 74 | 69 6f 6e 6e 20 6f 70 74 |e select|ionn opt|
|00000e20| 69 6f 6e 20 77 69 6c 6c | 20 6e 6f 74 20 62 65 20 |ion will| not be |
|00000e30| 70 72 65 73 65 6e 74 65 | 64 2e 20 20 41 66 74 65 |presente|d. Afte|
|00000e40| 72 20 0d 61 64 6a 75 73 | 74 69 6e 67 20 74 68 65 |r .adjus|ting the|
|00000e50| 20 73 65 6c 65 63 74 69 | 6f 6e 20 72 65 63 74 61 | selecti|on recta|
|00000e60| 6e 67 6c 65 2c 20 63 6c | 69 63 6b 20 4f 4b 20 74 |ngle, cl|ick OK t|
|00000e70| 6f 20 73 61 76 65 20 74 | 68 65 20 73 65 6c 65 63 |o save t|he selec|
|00000e80| 74 65 64 20 64 61 74 61 | 2e 20 0d 54 68 65 6e 20 |ted data|. .Then |
|00000e90| 6f 70 65 6e 20 74 68 65 | 20 73 61 76 65 64 20 43 |open the| saved C|
|00000ea0| 47 4d 20 64 6f 63 75 6d | 65 6e 74 2e 20 20 4e 6f |GM docum|ent. No|
|00000eb0| 77 20 73 61 76 65 20 74 | 68 69 73 20 70 69 63 74 |w save t|his pict|
|00000ec0| 75 72 65 20 61 73 20 61 | 20 54 49 46 46 20 0d 64 |ure as a| TIFF .d|
|00000ed0| 6f 63 75 6d 65 6e 74 2e | 20 20 28 4e 6f 74 65 20 |ocument.| (Note |
|00000ee0| 74 68 65 20 74 77 6f 20 | 73 74 65 70 20 70 72 6f |the two |step pro|
|00000ef0| 63 65 73 73 20 68 65 72 | 65 3b 20 50 49 43 54 20 |cess her|e; PICT |
|00000f00| 74 6f 20 43 47 4d 20 66 | 6f 6c 6c 6f 77 65 64 20 |to CGM f|ollowed |
|00000f10| 62 79 20 43 47 4d 20 0d | 74 6f 20 54 49 46 46 29 |by CGM .|to TIFF)|
|00000f20| 2e 0d 0d 0d 43 4f 4c 4f | 52 20 53 4c 49 44 45 20 |....COLO|R SLIDE |
|00000f30| 45 58 41 4d 50 4c 45 3a | 20 20 41 6e 6e 6f 74 61 |EXAMPLE:| Annota|
|00000f40| 74 69 6e 67 20 61 20 63 | 6f 6c 6f 72 20 73 6c 69 |ting a c|olor sli|
|00000f50| 64 65 2e 0d 0d 0d 55 73 | 65 20 79 6f 75 72 20 66 |de....Us|e your f|
|00000f60| 61 76 6f 72 69 74 65 20 | 4d 61 63 69 6e 74 6f 73 |avorite |Macintos|
|00000f70| 68 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 74 6f |h applic|ation to|
|00000f80| 20 61 6e 6e 6f 74 61 74 | 65 20 61 20 67 72 61 70 | annotat|e a grap|
|00000f90| 68 69 63 2e 20 20 49 66 | 20 74 68 65 20 0d 6f 72 |hic. If| the .or|
|00000fa0| 69 67 69 6e 61 6c 20 67 | 72 61 70 68 69 63 20 69 |iginal g|raphic i|
|00000fb0| 73 20 61 20 43 47 4d 20 | 64 6f 63 75 6d 65 6e 74 |s a CGM |document|
|00000fc0| 2c 20 75 73 65 20 43 67 | 6d 4d 61 6b 65 72 20 74 |, use Cg|mMaker t|
|00000fd0| 6f 20 63 6f 6e 76 65 72 | 74 20 69 74 20 74 6f 20 |o conver|t it to |
|00000fe0| 50 49 43 54 20 0d 66 6f | 72 20 79 6f 75 72 20 4d |PICT .fo|r your M|
|00000ff0| 61 63 69 6e 74 6f 73 68 | 20 61 70 70 6c 69 63 61 |acintosh| applica|
|00001000| 74 69 6f 6e 2e 20 20 41 | 66 74 65 72 20 69 74 20 |tion. A|fter it |
|00001010| 68 61 73 20 62 65 65 6e | 20 65 64 69 74 65 64 2c |has been| edited,|
|00001020| 20 73 61 76 65 20 69 74 | 20 61 73 20 0d 61 20 50 | save it| as .a P|
|00001030| 49 43 54 20 64 6f 63 75 | 6d 65 6e 74 20 6f 72 20 |ICT docu|ment or |
|00001040| 63 6f 70 79 20 69 74 20 | 74 6f 20 74 68 65 20 43 |copy it |to the C|
|00001050| 6c 69 70 62 6f 61 72 64 | 2e 20 20 53 74 61 72 74 |lipboard|. Start|
|00001060| 20 43 67 6d 4d 61 6b 65 | 72 20 61 6e 64 20 73 65 | CgmMake|r and se|
|00001070| 6c 65 63 74 20 0d 4f 70 | 65 6e 2e 2e 2e 20 66 72 |lect .Op|en... fr|
|00001080| 6f 6d 20 74 68 65 20 46 | 69 6c 65 20 6d 65 6e 75 |om the F|ile menu|
|00001090| 2c 20 6f 72 20 70 61 73 | 74 65 20 69 74 20 69 6e |, or pas|te it in|
|000010a0| 20 66 72 6f 6d 20 74 68 | 65 20 43 6c 69 70 62 6f | from th|e Clipbo|
|000010b0| 61 72 64 2e 20 20 53 61 | 76 65 20 69 74 20 0d 61 |ard. Sa|ve it .a|
|000010c0| 73 20 61 20 43 47 4d 20 | 64 6f 63 75 6d 65 6e 74 |s a CGM |document|
|000010d0| 20 62 79 20 73 65 6c 65 | 63 74 69 6e 67 20 53 61 | by sele|cting Sa|
|000010e0| 76 65 20 41 73 2e 2e 2e | 20 66 72 6f 6d 20 74 68 |ve As...| from th|
|000010f0| 65 20 46 69 6c 65 20 6d | 65 6e 75 2e 20 20 53 65 |e File m|enu. Se|
|00001100| 6c 65 63 74 20 0d 74 68 | 65 20 61 72 65 61 20 74 |lect .th|e area t|
|00001110| 6f 20 62 65 20 73 61 76 | 65 64 20 61 6e 64 20 63 |o be sav|ed and c|
|00001120| 6c 69 63 6b 20 4f 4b 2e | 20 59 6f 75 20 77 69 6c |lick OK.| You wil|
|00001130| 6c 20 6e 6f 77 20 68 61 | 76 65 20 61 20 43 47 4d |l now ha|ve a CGM|
|00001140| 20 64 6f 63 75 6d 65 6e | 74 20 0d 6f 6e 20 74 68 | documen|t .on th|
|00001150| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 77 68 69 63 |e Macint|osh whic|
|00001160| 68 20 63 61 6e 20 62 65 | 20 73 65 6e 74 20 74 6f |h can be| sent to|
|00001170| 20 50 61 67 65 73 20 73 | 65 76 65 72 61 6c 20 77 | Pages s|everal w|
|00001180| 61 79 73 2e 20 20 4f 6e | 65 20 6f 66 20 74 68 65 |ays. On|e of the|
|00001190| 20 0d 62 65 74 74 65 72 | 20 77 61 79 73 20 69 73 | .better| ways is|
|000011a0| 20 76 69 61 20 54 43 50 | 2f 49 50 20 77 69 74 68 | via TCP|/IP with|
|000011b0| 20 54 65 6c 6e 65 74 20 | 77 68 69 63 68 20 69 73 | Telnet |which is|
|000011c0| 20 69 6c 6c 75 73 74 72 | 61 74 65 64 20 69 6e 20 | illustr|ated in |
|000011d0| 61 20 6c 61 74 65 72 20 | 0d 73 65 63 74 69 6f 6e |a later |.section|
|000011e0| 2e 0d 0d 0d 43 4f 4d 4d | 41 4e 44 20 53 55 4d 4d |....COMM|AND SUMM|
|000011f0| 41 52 59 0d 0d 41 70 70 | 6c 65 20 4d 65 6e 75 0d |ARY..App|le Menu.|
|00001200| 0d 20 20 41 62 6f 75 74 | 20 43 67 6d 4d 61 6b 65 |. About| CgmMake|
|00001210| 72 2e 2e 2e 20 20 20 20 | 20 53 68 6f 77 73 20 74 |r... | Shows t|
|00001220| 68 65 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 43 67 |he versi|on of Cg|
|00001230| 6d 4d 61 6b 65 72 2e 0d | 0d 20 20 2e 2e 2e 20 20 |mMaker..|. ... |
|00001240| 20 09 09 4f 74 68 65 72 | 20 64 65 73 6b 20 61 63 | ..Other| desk ac|
|00001250| 63 65 73 6f 72 69 65 73 | 2e 0d 0d 46 69 6c 65 20 |cesories|...File |
|00001260| 6d 65 6e 75 0d 0d 20 20 | 4f 70 65 6e 2e 2e 2e 09 |menu.. |Open....|
|00001270| 09 4c 65 74 73 20 74 68 | 65 20 75 73 65 72 20 63 |.Lets th|e user c|
|00001280| 68 6f 6f 73 65 20 61 20 | 50 49 43 54 2c 20 43 47 |hoose a |PICT, CG|
|00001290| 4d 2c 20 54 49 46 46 2c | 20 0d 09 09 09 4d 61 63 |M, TIFF,| ....Mac|
|000012a0| 50 61 69 6e 74 20 6f 72 | 20 6f 74 68 65 72 20 67 |Paint or| other g|
|000012b0| 72 61 70 68 69 63 73 20 | 64 6f 63 75 6d 65 6e 74 |raphics |document|
|000012c0| 20 77 68 69 63 68 20 0d | 09 09 09 43 67 6d 4d 61 | which .|...CgmMa|
|000012d0| 6b 65 72 20 63 61 6e 20 | 70 72 6f 63 65 73 73 2e |ker can |process.|
|000012e0| 0d 0d 20 20 53 61 76 65 | 20 41 73 2e 2e 2e 09 09 |.. Save| As.....|
|000012f0| 4c 65 74 73 20 74 68 65 | 20 75 73 65 72 20 73 61 |Lets the| user sa|
|00001300| 76 65 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 64 |ve the c|urrent d|
|00001310| 6f 63 75 6d 65 6e 74 20 | 69 6e 20 0d 09 09 09 76 |ocument |in ....v|
|00001320| 61 72 69 6f 75 73 20 66 | 6f 72 6d 61 74 73 2e 20 |arious f|ormats. |
|00001330| 20 49 66 20 61 20 66 6f | 72 6d 61 74 20 6f 70 74 | If a fo|rmat opt|
|00001340| 69 6f 6e 20 69 73 20 6e | 6f 74 20 0d 09 09 09 61 |ion is n|ot ....a|
|00001350| 70 70 72 6f 70 72 69 61 | 74 65 2c 20 69 74 20 77 |ppropria|te, it w|
|00001360| 69 6c 6c 20 6e 6f 74 20 | 62 65 20 61 63 74 69 76 |ill not |be activ|
|00001370| 65 2e 0d 0d 20 20 51 75 | 69 74 09 09 09 54 65 72 |e... Qu|it...Ter|
|00001380| 6d 69 6e 61 74 65 73 20 | 43 67 6d 4d 61 6b 65 72 |minates |CgmMaker|
|00001390| 2e 0d 0d 45 64 69 74 20 | 4d 65 6e 75 0d 0d 20 20 |...Edit |Menu.. |
|000013a0| 55 6e 64 6f 09 09 09 4e | 6f 74 20 75 73 65 64 20 |Undo...N|ot used |
|000013b0| 62 79 20 43 67 6d 4d 61 | 6b 65 72 2e 0d 0d 20 20 |by CgmMa|ker... |
|000013c0| 43 75 74 09 09 09 4e 6f | 74 20 75 73 65 64 20 62 |Cut...No|t used b|
|000013d0| 79 20 43 67 6d 4d 61 6b | 65 72 2e 0d 0d 20 20 43 |y CgmMak|er... C|
|000013e0| 6f 70 79 09 09 09 4e 6f | 74 20 75 73 65 64 20 62 |opy...No|t used b|
|000013f0| 79 20 43 67 6d 4d 61 6b | 65 72 2e 0d 0d 20 20 50 |y CgmMak|er... P|
|00001400| 61 73 74 65 09 09 09 4c | 65 74 73 20 74 68 65 20 |aste...L|ets the |
|00001410| 75 73 65 72 20 70 61 73 | 74 65 20 74 68 65 20 50 |user pas|te the P|
|00001420| 49 43 54 20 64 61 74 61 | 20 66 72 6f 6d 20 74 68 |ICT data| from th|
|00001430| 65 20 0d 09 09 09 4d 61 | 63 69 6e 74 6f 73 68 20 |e ....Ma|cintosh |
|00001440| 43 6c 69 70 62 6f 61 72 | 64 20 74 6f 20 43 67 6d |Clipboar|d to Cgm|
|00001450| 4d 61 6b 65 72 2e 0d 0d | 0d 4f 70 74 69 6f 6e 20 |Maker...|.Option |
|00001460| 4d 65 6e 75 0d 0d 20 20 | 5a 6f 6f 6d 20 49 6e 09 |Menu.. |Zoom In.|
|00001470| 09 45 6e 6c 61 72 67 65 | 73 20 61 20 70 69 63 74 |.Enlarge|s a pict|
|00001480| 75 72 65 20 62 79 20 7a | 6f 6f 6d 69 6e 67 20 69 |ure by z|ooming i|
|00001490| 6e 2e 0d 0d 20 20 5a 6f | 6f 6d 20 4f 75 74 09 09 |n... Zo|om Out..|
|000014a0| 52 65 76 65 72 73 65 73 | 20 5a 6f 6f 6d 20 49 6e |Reverses| Zoom In|
|000014b0| 2c 20 6f 6e 65 20 73 74 | 65 70 20 61 74 20 61 20 |, one st|ep at a |
|000014c0| 74 69 6d 65 2e 0d 0d 20 | 20 4c 61 6e 64 73 63 61 |time... | Landsca|
|000014d0| 70 65 09 09 49 66 20 74 | 68 65 20 70 69 63 74 75 |pe..If t|he pictu|
|000014e0| 72 65 20 68 61 73 20 6f | 62 6a 65 63 74 73 20 6f |re has o|bjects o|
|000014f0| 74 68 65 72 20 74 68 61 | 6e 20 70 69 78 65 6c 73 |ther tha|n pixels|
|00001500| 2c 20 0d 09 09 09 74 68 | 65 20 72 65 73 75 6c 74 |, ....th|e result|
|00001510| 69 6e 67 20 43 47 4d 20 | 64 6f 63 75 6d 65 6e 74 |ing CGM |document|
|00001520| 20 77 69 6c 6c 20 62 65 | 20 74 61 72 67 65 74 65 | will be| targete|
|00001530| 64 20 0d 09 09 09 66 6f | 72 20 31 34 38 39 20 68 |d ....fo|r 1489 h|
|00001540| 6f 72 69 7a 6f 6e 74 61 | 6c 20 61 6e 64 20 39 36 |orizonta|l and 96|
|00001550| 37 20 76 65 72 74 69 63 | 61 6c 3b 20 69 66 20 69 |7 vertic|al; if i|
|00001560| 74 20 0d 09 09 09 63 6f | 6e 74 61 69 6e 73 20 6f |t ....co|ntains o|
|00001570| 6e 6c 79 20 70 69 78 65 | 6c 64 61 74 61 2c 20 74 |nly pixe|ldata, t|
|00001580| 68 65 20 73 69 7a 65 20 | 77 69 6c 6c 20 62 65 20 |he size |will be |
|00001590| 0d 09 09 09 75 6e 63 68 | 61 6e 67 65 64 2e 0d 0d |....unch|anged...|
|000015a0| 20 20 50 6f 72 74 72 61 | 69 74 09 09 49 66 20 74 | Portra|it..If t|
|000015b0| 68 65 20 70 69 63 74 75 | 72 65 20 68 61 73 20 6f |he pictu|re has o|
|000015c0| 62 6a 65 63 74 73 20 6f | 74 68 65 72 20 74 68 61 |bjects o|ther tha|
|000015d0| 6e 20 70 69 78 65 6c 73 | 2c 20 0d 09 09 09 74 68 |n pixels|, ....th|
|000015e0| 65 20 72 65 73 75 6c 74 | 69 6e 67 20 43 47 4d 20 |e result|ing CGM |
|000015f0| 64 6f 63 75 6d 65 6e 74 | 20 77 69 6c 6c 20 62 65 |document| will be|
|00001600| 20 74 61 72 67 65 74 65 | 64 20 0d 09 09 09 66 6f | targete|d ....fo|
|00001610| 72 20 39 36 37 20 68 6f | 72 69 7a 6f 6e 74 61 6c |r 967 ho|rizontal|
|00001620| 20 61 6e 64 20 31 34 38 | 39 20 76 65 72 74 69 63 | and 148|9 vertic|
|00001630| 61 6c 3b 20 69 66 20 69 | 74 20 0d 09 09 09 63 6f |al; if i|t ....co|
|00001640| 6e 74 61 69 6e 73 20 6f | 6e 6c 79 20 70 69 78 65 |ntains o|nly pixe|
|00001650| 6c 64 61 74 61 2c 20 74 | 68 65 20 73 69 7a 65 20 |ldata, t|he size |
|00001660| 77 69 6c 6c 20 62 65 20 | 0d 09 09 09 75 6e 63 68 |will be |....unch|
|00001670| 61 6e 67 65 64 2e 0d 0d | 20 20 42 6c 61 63 6b 20 |anged...| Black |
|00001680| 46 75 6c 6c 20 57 69 6e | 64 6f 77 09 44 72 61 77 |Full Win|dow.Draw|
|00001690| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 73 6c |s the cu|rrent sl|
|000016a0| 69 64 65 2c 20 66 75 6c | 6c 20 73 63 72 65 65 6e |ide, ful|l screen|
|000016b0| 20 77 69 74 68 20 61 20 | 0d 09 09 09 62 6c 61 63 | with a |....blac|
|000016c0| 6b 20 62 61 63 6b 67 72 | 6f 75 6e 64 2e 20 20 41 |k backgr|ound. A|
|000016d0| 20 6d 6f 75 73 65 20 63 | 6c 69 63 6b 20 72 65 73 | mouse c|lick res|
|000016e0| 74 6f 72 65 73 20 74 68 | 65 0d 09 09 09 73 63 72 |tores th|e....scr|
|000016f0| 65 65 6e 2e 0d 0d 20 20 | 57 68 69 74 65 20 46 75 |een... |White Fu|
|00001700| 6c 6c 20 57 69 6e 64 6f | 77 09 44 72 61 77 73 20 |ll Windo|w.Draws |
|00001710| 74 68 65 20 63 75 72 72 | 65 6e 74 20 73 6c 69 64 |the curr|ent slid|
|00001720| 65 2c 20 66 75 6c 6c 20 | 73 63 72 65 65 6e 20 77 |e, full |screen w|
|00001730| 69 74 68 20 61 20 0d 09 | 09 09 77 68 69 74 65 20 |ith a ..|..white |
|00001740| 62 61 63 6b 67 72 6f 75 | 6e 64 2e 20 20 41 20 6d |backgrou|nd. A m|
|00001750| 6f 75 73 65 20 63 6c 69 | 63 6b 20 72 65 73 74 6f |ouse cli|ck resto|
|00001760| 72 65 73 20 74 68 65 0d | 09 09 09 73 63 72 65 65 |res the.|...scree|
|00001770| 6e 2e 0d 0d 0d 52 61 77 | 20 4d 65 6e 75 0d 0d 20 |n....Raw| Menu.. |
|00001780| 20 4f 70 65 6e 20 52 61 | 77 2e 2e 2e 09 09 4c 65 | Open Ra|w.....Le|
|00001790| 74 73 20 74 68 65 20 75 | 73 65 72 20 63 68 6f 6f |ts the u|ser choo|
|000017a0| 73 65 20 61 20 54 45 58 | 54 20 64 6f 63 75 6d 65 |se a TEX|T docume|
|000017b0| 6e 74 20 74 6f 20 6f 70 | 65 6e 20 0d 09 09 09 61 |nt to op|en ....a|
|000017c0| 73 20 61 20 72 65 63 74 | 61 6e 67 75 6c 61 72 20 |s a rect|angular |
|000017d0| 61 72 72 61 79 20 6f 66 | 20 70 69 78 65 6c 20 64 |array of| pixel d|
|000017e0| 61 74 61 2e 0d 0d 20 20 | 4f 70 65 6e 20 50 61 6c |ata... |Open Pal|
|000017f0| 65 74 74 65 2e 2e 2e 09 | 4c 65 74 73 20 74 68 65 |ette....|Lets the|
|00001800| 20 75 73 65 72 20 63 68 | 6f 6f 73 65 20 61 20 54 | user ch|oose a T|
|00001810| 45 58 54 20 64 6f 63 75 | 6d 65 6e 74 20 74 6f 20 |EXT docu|ment to |
|00001820| 6f 70 65 6e 20 0d 09 09 | 09 61 73 20 61 20 63 6f |open ...|.as a co|
|00001830| 6c 6f 72 20 74 61 62 6c | 65 20 66 6f 72 20 74 68 |lor tabl|e for th|
|00001840| 65 20 72 61 77 20 64 61 | 74 61 2e 0d 0d 20 20 53 |e raw da|ta... S|
|00001850| 61 76 65 20 52 61 77 20 | 41 73 2e 2e 2e 09 4c 65 |ave Raw |As....Le|
|00001860| 74 73 20 74 68 65 20 75 | 73 65 72 20 73 61 76 65 |ts the u|ser save|
|00001870| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 64 69 73 | the cur|rent dis|
|00001880| 70 6c 61 79 20 28 69 2e | 65 2e 20 0d 09 09 09 74 |play (i.|e. ....t|
|00001890| 68 65 20 63 75 72 72 65 | 6e 74 20 50 49 43 54 20 |he curre|nt PICT |
|000018a0| 64 61 74 61 20 64 69 73 | 70 6c 61 79 65 64 20 6f |data dis|played o|
|000018b0| 6e 20 74 68 65 20 73 63 | 72 65 65 6e 29 20 0d 09 |n the sc|reen) ..|
|000018c0| 09 09 61 73 20 72 61 77 | 20 64 61 74 61 2c 20 69 |..as raw| data, i|
|000018d0| 2e 65 2e 20 61 73 20 61 | 20 72 65 63 74 61 6e 67 |.e. as a| rectang|
|000018e0| 75 6c 61 72 20 61 72 72 | 61 79 20 6f 66 20 0d 09 |ular arr|ay of ..|
|000018f0| 09 09 70 69 78 65 6c 20 | 64 61 74 61 2e 20 20 54 |..pixel |data. T|
|00001900| 68 65 20 72 65 73 6f 6c | 75 74 69 6f 6e 20 69 73 |he resol|ution is|
|00001910| 20 61 70 70 65 6e 64 65 | 64 20 74 6f 20 74 68 65 | appende|d to the|
|00001920| 20 0d 09 09 09 64 6f 63 | 75 6d 65 6e 74 20 6e 61 | ....doc|ument na|
|00001930| 6d 65 2e 0d 0d 20 20 43 | 6f 6e 76 65 72 74 20 43 |me... C|onvert C|
|00001940| 67 6d 20 74 6f 20 52 61 | 77 2e 2e 2e 20 4c 65 74 |gm to Ra|w... Let|
|00001950| 73 20 74 68 65 20 75 73 | 65 72 20 73 65 6c 65 63 |s the us|er selec|
|00001960| 74 20 61 20 43 67 6d 20 | 64 6f 63 75 6d 65 6e 74 |t a Cgm |document|
|00001970| 20 74 6f 20 62 65 20 0d | 09 09 09 63 6f 6e 76 65 | to be .|...conve|
|00001980| 72 74 65 64 20 74 6f 20 | 72 61 77 20 70 69 78 65 |rted to |raw pixe|
|00001990| 6c 20 64 61 74 61 2e 20 | 20 45 61 63 68 20 70 69 |l data. | Each pi|
|000019a0| 63 74 75 72 65 20 69 6e | 20 0d 09 09 09 74 68 65 |cture in| ....the|
|000019b0| 20 43 67 6d 20 69 73 20 | 63 6f 6e 76 65 72 74 65 | Cgm is |converte|
|000019c0| 64 20 61 6e 64 20 73 61 | 76 65 64 20 69 6e 20 61 |d and sa|ved in a|
|000019d0| 20 73 65 70 61 72 61 74 | 65 20 0d 09 09 09 66 6f | separat|e ....fo|
|000019e0| 6c 64 65 72 20 61 73 20 | 69 73 20 65 61 73 63 68 |lder as |is easch|
|000019f0| 20 61 73 73 6f 63 69 61 | 74 65 64 20 70 61 6c 65 | associa|ted pale|
|00001a00| 74 74 65 2e 0d 0d 20 20 | 44 65 66 61 75 6c 74 20 |tte... |Default |
|00001a10| 43 6f 6c 6f 72 09 09 53 | 65 74 73 20 74 68 65 20 |Color..S|ets the |
|00001a20| 72 61 77 20 64 61 74 61 | 27 73 20 63 6f 6c 6f 72 |raw data|'s color|
|00001a30| 20 74 61 62 6c 65 20 74 | 6f 20 74 68 65 20 64 65 | table t|o the de|
|00001a40| 66 61 75 6c 74 20 0d 09 | 09 09 63 6f 6c 6f 72 20 |fault ..|..color |
|00001a50| 74 61 62 6c 65 20 6f 66 | 20 74 68 65 20 4d 61 63 |table of| the Mac|
|00001a60| 69 6e 74 6f 73 68 2e 0d | 0d 20 20 44 65 66 61 75 |intosh..|. Defau|
|00001a70| 6c 74 20 47 72 61 79 09 | 09 53 65 74 73 20 74 68 |lt Gray.|.Sets th|
|00001a80| 65 20 72 61 77 20 64 61 | 74 61 27 73 20 63 6f 6c |e raw da|ta's col|
|00001a90| 6f 72 20 74 61 62 6c 65 | 20 74 6f 20 61 20 6c 69 |or table| to a li|
|00001aa0| 6e 65 61 72 20 0d 09 09 | 09 67 72 61 79 20 73 63 |near ...|.gray sc|
|00001ab0| 61 6c 65 2e 0d 0d 20 20 | 43 6c 65 61 6e 20 55 70 |ale... |Clean Up|
|00001ac0| 09 09 44 69 73 70 6f 73 | 65 73 20 6f 66 20 61 6c |..Dispos|es of al|
|00001ad0| 6c 20 74 68 65 20 64 61 | 74 61 20 73 74 72 75 63 |l the da|ta struc|
|00001ae0| 74 75 72 65 73 20 61 73 | 73 6f 63 69 61 74 65 64 |tures as|sociated|
|00001af0| 20 0d 09 09 09 77 69 74 | 68 20 74 68 65 20 72 61 | ....wit|h the ra|
|00001b00| 77 20 64 61 74 61 2e 0d | 0d 0d 43 6f 6d 6d 61 6e |w data..|..Comman|
|00001b10| 64 20 44 65 74 61 69 6c | 73 0d 0d 53 61 76 65 20 |d Detail|s..Save |
|00001b20| 41 73 2e 2e 2e 0d 0d 53 | 61 76 65 73 20 74 68 65 |As.....S|aves the|
|00001b30| 20 63 75 72 72 65 6e 74 | 20 67 72 61 70 68 69 63 | current| graphic|
|00001b40| 20 69 6e 74 6f 20 61 20 | 64 6f 63 75 6d 65 6e 74 | into a |document|
|00001b50| 20 6f 66 20 74 68 65 20 | 69 6e 64 69 63 61 74 65 | of the |indicate|
|00001b60| 64 20 74 79 70 65 2e 20 | 20 49 6e 61 70 70 72 6f |d type. | Inappro|
|00001b70| 70 72 69 61 74 65 20 63 | 68 6f 69 63 65 73 20 77 |priate c|hoices w|
|00001b80| 69 6c 6c 20 62 65 20 64 | 69 73 61 62 6c 65 64 20 |ill be d|isabled |
|00001b90| 61 6e 64 20 64 69 6d 6d | 65 64 2e 20 20 45 6e 74 |and dimm|ed. Ent|
|00001ba0| 65 72 20 61 20 64 6f 63 | 75 6d 65 6e 74 20 6e 61 |er a doc|ument na|
|00001bb0| 6d 65 20 61 6e 64 20 63 | 68 6f 6f 73 65 20 74 68 |me and c|hoose th|
|00001bc0| 65 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 6f 70 |e approp|riate op|
|00001bd0| 74 69 6f 6e 73 3b 20 20 | 74 68 65 6e 20 63 6c 69 |tions; |then cli|
|00001be0| 63 6b 20 6f 6e 20 53 61 | 76 65 2e 20 20 43 61 6e |ck on Sa|ve. Can|
|00001bf0| 63 65 6c 20 72 65 74 75 | 72 6e 73 20 74 6f 20 43 |cel retu|rns to C|
|00001c00| 67 6d 4d 61 6b 65 72 20 | 77 69 74 68 6f 75 74 20 |gmMaker |without |
|00001c10| 73 61 76 69 6e 67 20 74 | 68 65 20 64 61 74 61 2e |saving t|he data.|
|00001c20| 0d 0d 49 66 20 79 6f 75 | 20 73 70 65 63 69 66 79 |..If you| specify|
|00001c30| 20 61 6e 20 65 78 69 73 | 74 69 6e 67 20 64 6f 63 | an exis|ting doc|
|00001c40| 75 6d 65 6e 74 2c 20 74 | 68 65 20 4d 61 63 69 6e |ument, t|he Macin|
|00001c50| 74 6f 73 68 20 77 69 6c | 6c 20 64 69 73 70 6c 61 |tosh wil|l displa|
|00001c60| 79 20 61 20 77 61 72 6e | 69 6e 67 20 64 69 61 6c |y a warn|ing dial|
|00001c70| 6f 67 20 27 52 65 70 6c | 61 63 65 20 65 78 69 73 |og 'Repl|ace exis|
|00001c80| 74 69 6e 67 20 22 66 69 | 6c 65 6e 61 6d 65 22 20 |ting "fi|lename" |
|00001c90| 27 2e 20 20 43 6c 69 63 | 6b 69 6e 67 20 79 65 73 |'. Clic|king yes|
|00001ca0| 20 77 69 6c 6c 20 61 70 | 70 65 6e 64 20 74 68 65 | will ap|pend the|
|00001cb0| 20 63 75 72 72 65 6e 74 | 20 70 69 63 74 75 72 65 | current| picture|
|00001cc0| 20 74 6f 20 74 68 65 20 | 43 67 6d 20 64 6f 63 75 | to the |Cgm docu|
|00001cd0| 6d 65 6e 74 2e 20 20 43 | 47 4d 4d 41 4b 45 52 20 |ment. C|GMMAKER |
|00001ce0| 4e 45 56 45 52 20 44 45 | 53 54 52 4f 59 53 20 4f |NEVER DE|STROYS O|
|00001cf0| 52 20 52 45 50 4c 41 43 | 45 53 20 43 47 4d 20 44 |R REPLAC|ES CGM D|
|00001d00| 4f 43 55 4d 45 4e 54 53 | 2c 20 42 55 54 20 41 4c |OCUMENTS|, BUT AL|
|00001d10| 57 41 59 53 20 41 50 50 | 45 4e 44 20 54 48 45 20 |WAYS APP|END THE |
|00001d20| 52 45 51 55 45 53 54 45 | 44 20 50 49 43 54 55 52 |REQUESTE|D PICTUR|
|00001d30| 45 20 54 4f 20 54 48 45 | 20 45 4e 44 20 4f 46 20 |E TO THE| END OF |
|00001d40| 54 48 45 20 44 4f 43 55 | 4d 45 4e 54 2e 20 20 49 |THE DOCU|MENT. I|
|00001d50| 66 20 79 6f 75 20 6f 70 | 65 6e 20 61 20 43 67 6d |f you op|en a Cgm|
|00001d60| 20 64 6f 63 75 6d 65 6e | 74 2c 20 6f 6e 6c 79 20 | documen|t, only |
|00001d70| 74 68 65 20 66 69 72 73 | 74 20 70 69 63 74 75 72 |the firs|t pictur|
|00001d80| 65 20 77 69 6c 6c 20 62 | 65 20 64 69 73 70 6c 61 |e will b|e displa|
|00001d90| 79 65 64 20 6f 6e 20 74 | 68 65 20 4d 61 63 69 6e |yed on t|he Macin|
|00001da0| 74 6f 73 68 2e 20 20 57 | 68 65 6e 20 79 6f 75 20 |tosh. W|hen you |
|00001db0| 73 65 6e 64 20 61 20 43 | 67 6d 20 64 6f 63 75 6d |send a C|gm docum|
|00001dc0| 65 6e 74 20 74 6f 20 50 | 61 67 65 73 2c 20 61 6c |ent to P|ages, al|
|00001dd0| 6c 20 6f 66 20 74 68 65 | 20 70 69 63 74 75 72 65 |l of the| picture|
|00001de0| 73 20 77 69 6c 6c 20 62 | 65 20 72 65 63 6f 72 64 |s will b|e record|
|00001df0| 65 64 20 6f 6e 20 66 69 | 6c 6d 20 61 6e 64 20 77 |ed on fi|lm and w|
|00001e00| 68 65 6e 20 79 6f 75 20 | 63 6f 6e 76 65 72 74 20 |hen you |convert |
|00001e10| 74 68 65 20 43 67 6d 20 | 74 6f 20 52 61 77 20 72 |the Cgm |to Raw r|
|00001e20| 61 73 74 65 72 20 66 69 | 6c 65 73 20 28 73 65 65 |aster fi|les (see|
|00001e30| 20 74 68 65 20 52 61 77 | 20 4d 65 6e 75 29 2c 20 | the Raw| Menu), |
|00001e40| 61 6c 6c 20 6f 66 20 74 | 68 65 20 70 69 63 74 75 |all of t|he pictu|
|00001e50| 72 65 73 20 77 69 6c 6c | 20 62 65 20 63 6f 6e 76 |res will| be conv|
|00001e60| 65 72 74 65 64 2e 0d 0d | 5a 6f 6f 6d 20 49 6e 0d |erted...|Zoom In.|
|00001e70| 0d 54 6f 20 7a 6f 6f 6d | 20 69 6e 20 6f 6e 20 61 |.To zoom| in on a|
|00001e80| 20 67 72 61 70 68 69 63 | 2c 20 73 65 6c 65 63 74 | graphic|, select|
|00001e90| 20 5a 6f 6f 6d 20 49 6e | 20 66 72 6f 6d 20 74 68 | Zoom In| from th|
|00001ea0| 65 20 4f 70 74 69 6f 6e | 73 20 6d 65 6e 75 2e 20 |e Option|s menu. |
|00001eb0| 20 54 68 65 20 7a 6f 6f | 6d 20 69 73 20 63 65 6e | The zoo|m is cen|
|00001ec0| 74 65 72 65 64 20 61 74 | 20 74 68 65 20 65 6c 65 |tered at| the ele|
|00001ed0| 76 61 74 6f 72 20 62 6f | 78 65 73 2e 0d 0d 57 68 |vator bo|xes...Wh|
|00001ee0| 69 6c 65 20 7a 6f 6f 6d | 69 6e 67 20 6f 72 20 69 |ile zoom|ing or i|
|00001ef0| 66 20 79 6f 75 20 70 72 | 65 73 73 20 74 68 65 20 |f you pr|ess the |
|00001f00| 3c 6f 70 74 69 6f 6e 3e | 20 61 6e 64 20 3c 63 6f |<option>| and <co|
|00001f10| 6d 6d 61 6e 64 3e 20 6b | 65 79 73 20 74 68 65 20 |mmand> k|eys the |
|00001f20| 72 65 64 2c 20 67 72 65 | 65 6e 2c 20 61 6e 64 20 |red, gre|en, and |
|00001f30| 62 6c 75 65 20 76 61 6c | 75 65 73 20 6f 66 20 74 |blue val|ues of t|
|00001f40| 68 65 20 70 69 78 65 6c | 20 77 69 6c 6c 20 62 65 |he pixel| will be|
|00001f50| 20 64 69 73 70 6c 61 79 | 65 64 20 61 6c 6f 6e 67 | display|ed along|
|00001f60| 20 77 69 74 68 20 74 68 | 65 20 3c 78 2c 79 3e 20 | with th|e <x,y> |
|00001f70| 63 6f 6f 72 64 69 6e 61 | 74 65 20 69 6e 20 74 68 |coordina|te in th|
|00001f80| 65 20 70 69 63 74 75 72 | 65 20 61 64 64 72 65 73 |e pictur|e addres|
|00001f90| 73 20 73 70 61 63 65 2e | 0d 0d 0d 43 72 69 73 69 |s space.|...Crisi|
|00001fa0| 73 20 43 6f 6d 6d 61 6e | 64 73 0d 0d 49 6e 20 74 |s Comman|ds..In t|
|00001fb0| 69 6d 65 73 20 6f 66 20 | 74 75 72 6d 6f 69 6c 2c |imes of |turmoil,|
|00001fc0| 20 74 68 65 72 65 20 61 | 72 65 20 73 65 76 65 72 | there a|re sever|
|00001fd0| 61 6c 20 73 70 65 63 69 | 61 6c 20 43 67 6d 4d 61 |al speci|al CgmMa|
|00001fe0| 6b 65 72 20 63 6f 6d 6d | 61 6e 64 73 20 77 68 69 |ker comm|ands whi|
|00001ff0| 63 68 20 6d 61 79 20 73 | 68 65 64 20 6c 69 67 68 |ch may s|hed ligh|
|00002000| 74 20 6f 6e 20 79 6f 75 | 72 20 70 72 6f 62 6c 65 |t on you|r proble|
|00002010| 6d 73 2e 0d 0d 20 20 3c | 6f 70 74 69 6f 6e 3e 20 |ms... <|option> |
|00002020| 4f 70 65 6e 2e 2e 2e 09 | 6c 69 73 74 73 20 64 65 |Open....|lists de|
|00002030| 74 61 69 6c 65 64 20 64 | 61 74 61 20 66 6f 72 20 |tailed d|ata for |
|00002040| 43 47 4d 20 61 6e 64 20 | 54 49 46 46 20 64 6f 63 |CGM and |TIFF doc|
|00002050| 75 6d 65 6e 74 73 0d 09 | 09 09 61 73 20 74 68 65 |uments..|..as the|
|00002060| 79 20 61 72 65 20 73 63 | 61 6e 6e 65 64 2e 0d 0d |y are sc|anned...|
|00002070| 20 20 3c 6f 70 74 69 6f | 6e 3e 20 51 75 69 74 09 | <optio|n> Quit.|
|00002080| 09 6c 69 73 74 73 20 64 | 61 74 61 20 61 62 6f 75 |.lists d|ata abou|
|00002090| 74 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 66 69 |t the cu|rrent fi|
|000020a0| 6c 65 2c 20 74 68 65 20 | 63 75 72 72 65 6e 74 0d |le, the |current.|
|000020b0| 09 09 09 70 6f 72 74 2c | 20 74 68 65 20 63 75 72 |...port,| the cur|
|000020c0| 72 65 6e 74 20 70 69 63 | 74 75 72 65 20 61 6e 64 |rent pic|ture and|
|000020d0| 20 74 68 65 20 73 79 73 | 74 65 6d 0d 09 09 09 65 | the sys|tem....e|
|000020e0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 2e 0d 0d 20 20 3c |nvironme|nt... <|
|000020f0| 73 68 69 66 74 3e 20 51 | 75 69 74 09 09 64 72 61 |shift> Q|uit..dra|
|00002100| 77 73 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 70 |ws the c|urrent p|
|00002110| 61 6c 65 74 74 65 20 74 | 77 69 63 65 3b 20 69 66 |alette t|wice; if|
|00002120| 20 74 68 65 79 20 61 72 | 65 0d 09 09 09 6e 6f 74 | they ar|e....not|
|00002130| 20 69 64 65 6e 74 69 63 | 61 6c 2c 20 79 6f 75 72 | identic|al, your|
|00002140| 20 70 61 6c 65 74 74 65 | 20 69 73 20 6e 6f 74 20 | palette| is not |
|00002150| 6f 62 65 79 69 6e 67 20 | 74 68 65 0d 09 09 09 4d |obeying |the....M|
|00002160| 61 63 69 6e 74 6f 73 68 | 20 72 75 6c 65 73 2e 0d |acintosh| rules..|
|00002170| 0d 0d 52 61 77 20 4d 65 | 6e 75 0d 0d 54 68 65 20 |..Raw Me|nu..The |
|00002180| 52 61 77 20 6d 65 6e 75 | 20 6c 69 73 74 73 20 63 |Raw menu| lists c|
|00002190| 6f 6d 6d 61 6e 64 73 20 | 61 73 73 6f 63 69 61 74 |ommands |associat|
|000021a0| 65 64 20 77 69 74 68 20 | 72 65 61 64 69 6e 67 20 |ed with |reading |
|000021b0| 61 6e 64 20 6d 61 6e 69 | 70 75 6c 61 74 69 6e 67 |and mani|pulating|
|000021c0| 20 72 61 77 20 69 6d 61 | 67 65 20 64 61 74 61 2c | raw ima|ge data,|
|000021d0| 20 69 2e 65 2e 20 70 69 | 78 65 6c 20 6f 72 20 72 | i.e. pi|xel or r|
|000021e0| 61 73 74 65 72 20 64 61 | 74 61 2c 20 61 6e 64 20 |aster da|ta, and |
|000021f0| 61 73 73 6f 63 69 61 74 | 65 64 20 63 6f 6c 6f 72 |associat|ed color|
|00002200| 20 74 61 62 6c 65 73 2e | 0d 0d 55 73 75 61 6c 6c | tables.|..Usuall|
|00002210| 79 2c 20 43 67 6d 4d 61 | 6b 65 72 20 72 65 61 64 |y, CgmMa|ker read|
|00002220| 73 20 61 20 67 72 61 70 | 68 69 63 20 66 6f 72 6d |s a grap|hic form|
|00002230| 61 74 2c 20 73 75 63 68 | 20 61 73 20 54 49 46 46 |at, such| as TIFF|
|00002240| 20 6f 72 20 43 47 4d 2c | 20 61 6e 64 20 69 6d 6d | or CGM,| and imm|
|00002250| 65 64 69 61 74 65 6c 79 | 20 63 6f 6e 76 65 72 74 |ediately| convert|
|00002260| 73 20 69 74 20 74 6f 20 | 50 49 43 54 20 66 6f 72 |s it to |PICT for|
|00002270| 20 69 6e 74 65 72 6e 61 | 6c 20 75 73 65 2e 20 20 | interna|l use. |
|00002280| 57 68 65 6e 20 74 68 65 | 20 69 6e 74 65 72 6e 61 |When the| interna|
|00002290| 6c 20 50 49 43 54 20 69 | 73 20 67 65 6e 65 72 61 |l PICT i|s genera|
|000022a0| 74 65 64 20 61 20 63 6f | 6c 6f 72 20 74 61 62 6c |ted a co|lor tabl|
|000022b0| 65 20 69 73 20 22 70 65 | 72 6d 61 6e 65 6e 74 6c |e is "pe|rmanentl|
|000022c0| 79 22 20 61 74 74 61 63 | 68 65 64 2e 0d 0d 57 69 |y" attac|hed...Wi|
|000022d0| 74 68 20 72 61 77 20 64 | 61 74 61 2c 20 43 67 6d |th raw d|ata, Cgm|
|000022e0| 4d 61 6b 65 72 20 6b 65 | 65 70 73 20 74 68 65 20 |Maker ke|eps the |
|000022f0| 6f 72 69 67 69 6e 61 6c | 20 72 61 77 20 64 61 74 |original| raw dat|
|00002300| 61 20 61 6e 64 20 62 75 | 69 6c 64 73 20 61 20 6e |a and bu|ilds a n|
|00002310| 65 77 20 50 49 43 54 20 | 77 68 65 6e 65 76 65 72 |ew PICT |whenever|
|00002320| 20 74 68 65 20 63 6f 6c | 6f 72 20 74 61 62 6c 65 | the col|or table|
|00002330| 20 69 73 20 63 68 61 6e | 67 65 64 20 73 6f 20 74 | is chan|ged so t|
|00002340| 68 61 74 20 74 68 65 20 | 75 73 65 72 20 6d 61 79 |hat the |user may|
|00002350| 20 65 78 70 65 72 69 6d | 65 6e 74 20 77 69 74 68 | experim|ent with|
|00002360| 20 76 61 72 69 6f 75 73 | 20 63 6f 6c 6f 72 20 74 | various| color t|
|00002370| 61 62 6c 65 73 20 61 6e | 64 20 74 68 65 69 72 20 |ables an|d their |
|00002380| 65 66 66 65 63 74 73 2e | 20 20 54 68 65 20 66 6f |effects.| The fo|
|00002390| 72 6d 61 74 20 66 6f 72 | 20 74 68 65 20 64 61 74 |rmat for| the dat|
|000023a0| 61 20 61 6e 64 20 74 68 | 65 20 63 6f 6c 6f 72 20 |a and th|e color |
|000023b0| 74 61 62 6c 65 20 69 73 | 20 63 6f 6d 70 61 74 69 |table is| compati|
|000023c0| 62 6c 65 20 77 69 74 68 | 20 49 6d 61 67 65 54 6f |ble with| ImageTo|
|000023d0| 6f 6c 20 61 6e 64 20 77 | 61 73 20 61 64 64 65 64 |ol and w|as added|
|000023e0| 20 74 6f 20 43 67 6d 4d | 61 6b 65 72 20 61 73 20 | to CgmM|aker as |
|000023f0| 61 20 75 73 65 72 20 65 | 6e 68 61 6e 63 65 6d 65 |a user e|nhanceme|
|00002400| 6e 74 2e 0d 0d 44 6f 63 | 75 6d 65 6e 74 20 46 6f |nt...Doc|ument Fo|
|00002410| 72 6d 61 74 73 0d 0d 43 | 67 6d 4d 61 6b 65 72 20 |rmats..C|gmMaker |
|00002420| 72 65 71 75 69 72 65 73 | 20 72 61 77 20 64 61 74 |requires| raw dat|
|00002430| 61 20 61 6e 64 20 74 68 | 65 20 61 73 73 6f 63 69 |a and th|e associ|
|00002440| 61 74 65 64 20 63 6f 6c | 6f 72 20 74 61 62 6c 65 |ated col|or table|
|00002450| 73 20 74 6f 20 62 65 20 | 4d 61 63 69 6e 74 6f 73 |s to be |Macintos|
|00002460| 68 20 74 79 70 65 20 54 | 45 58 54 2e 0d 0d 54 68 |h type T|EXT...Th|
|00002470| 65 20 72 61 77 20 64 61 | 74 61 20 28 6f 72 20 72 |e raw da|ta (or r|
|00002480| 61 73 74 65 72 20 64 61 | 74 61 29 20 69 73 20 6f |aster da|ta) is o|
|00002490| 6e 65 20 62 79 74 65 20 | 70 65 72 20 70 69 78 65 |ne byte |per pixe|
|000024a0| 6c 20 61 6e 64 20 69 73 | 20 61 20 63 6f 6e 74 69 |l and is| a conti|
|000024b0| 6e 75 6f 75 73 20 73 74 | 72 65 61 6d 20 61 74 61 |nuous st|ream ata|
|000024c0| 72 74 69 6e 67 20 61 74 | 20 74 68 65 20 75 70 70 |rting at| the upp|
|000024d0| 65 72 20 6c 65 66 74 20 | 61 6e 64 20 66 69 6e 69 |er left |and fini|
|000024e0| 73 68 69 6e 67 20 61 74 | 20 74 68 65 20 6c 6f 77 |shing at| the low|
|000024f0| 65 72 20 72 69 67 68 74 | 2e 20 20 54 68 65 20 63 |er right|. The c|
|00002500| 75 72 72 65 6e 74 20 76 | 65 72 73 69 6f 6e 20 72 |urrent v|ersion r|
|00002510| 65 71 75 69 72 65 73 20 | 61 6e 20 65 76 65 6e 20 |equires |an even |
|00002520| 6e 75 6d 62 65 72 20 6f | 66 20 62 79 74 65 73 20 |number o|f bytes |
|00002530| 70 65 72 20 72 61 73 74 | 65 72 20 6c 69 6e 65 2e |per rast|er line.|
|00002540| 0d 0d 54 68 65 20 70 61 | 6c 65 74 74 65 20 66 69 |..The pa|lette fi|
|00002550| 6c 65 20 28 6f 72 20 63 | 6f 6c 6f 72 20 74 61 62 |le (or c|olor tab|
|00002560| 6c 65 29 20 63 6f 6e 74 | 61 69 6e 73 20 37 36 38 |le) cont|ains 768|
|00002570| 20 62 79 74 65 73 3b 20 | 32 35 36 20 66 6f 72 20 | bytes; |256 for |
|00002580| 72 65 64 2c 20 66 6f 6c | 6c 6f 77 65 64 20 62 79 |red, fol|lowed by|
|00002590| 20 32 35 36 20 66 6f 72 | 20 67 72 65 65 6e 2c 20 | 256 for| green, |
|000025a0| 66 6f 6c 6f 77 77 65 64 | 20 62 79 20 32 35 36 20 |folowwed| by 256 |
|000025b0| 66 6f 72 20 62 6c 75 65 | 2e 20 20 54 68 65 20 66 |for blue|. The f|
|000025c0| 69 72 73 74 20 65 6e 74 | 72 79 20 6d 75 73 74 20 |irst ent|ry must |
|000025d0| 62 65 20 77 68 69 74 65 | 20 61 6e 64 20 74 68 65 |be white| and the|
|000025e0| 20 6c 61 73 74 20 6d 75 | 73 74 20 62 65 20 62 6c | last mu|st be bl|
|000025f0| 61 63 6b 2e 0d 0d 54 68 | 65 20 69 6e 74 65 72 70 |ack...Th|e interp|
|00002600| 72 65 74 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |retation| of the |
|00002610| 70 69 63 74 75 72 65 20 | 69 73 20 74 6f 20 74 61 |picture |is to ta|
|00002620| 6b 65 20 61 20 70 69 78 | 65 6c 20 76 61 6c 75 65 |ke a pix|el value|
|00002630| 20 28 69 6e 20 74 68 65 | 20 72 61 6e 67 65 20 30 | (in the| range 0|
|00002640| 2e 2e 2e 32 35 35 29 20 | 61 6e 64 20 75 73 65 20 |...255) |and use |
|00002650| 69 74 20 61 73 20 61 6e | 20 69 6e 64 65 78 20 69 |it as an| index i|
|00002660| 6e 74 6f 20 74 68 65 20 | 63 6f 6c 6f 72 20 74 61 |nto the |color ta|
|00002670| 62 6c 65 20 66 6f 72 20 | 74 68 65 20 69 74 68 20 |ble for |the ith |
|00002680| 72 65 64 2c 20 67 72 65 | 65 6e 2c 20 61 6e 64 20 |red, gre|en, and |
|00002690| 62 6c 75 65 20 63 6f 6d | 70 6f 6e 65 6e 74 20 6f |blue com|ponent o|
|000026a0| 66 20 74 68 65 20 63 6f | 6c 6f 72 2e 0d 0d 0d 47 |f the co|lor....G|
|000026b0| 65 74 74 69 6e 67 20 79 | 6f 75 72 20 64 61 74 61 |etting y|our data|
|000026c0| 20 74 6f 20 50 61 67 65 | 73 0d 0d 4c 65 66 74 20 | to Page|s..Left |
|000026d0| 6f 75 74 20 73 69 6e 63 | 65 20 69 72 72 65 6c 65 |out sinc|e irrele|
|000026e0| 76 61 6e 74 20 65 78 63 | 65 70 74 20 61 74 20 4c |vant exc|ept at L|
|000026f0| 41 4e 4c 2e 20 20 4a 75 | 73 74 20 74 72 61 6e 73 |ANL. Ju|st trans|
|00002700| 66 65 72 20 61 73 20 62 | 69 6e 61 72 79 20 66 69 |fer as b|inary fi|
|00002710| 6c 65 2e 0d 0d 0d 0d 45 | 6e 68 61 6e 63 69 6e 67 |le.....E|nhancing|
|00002720| 20 43 67 6d 4d 61 6b 65 | 72 20 77 69 74 68 20 55 | CgmMake|r with U|
|00002730| 73 65 72 20 49 6d 70 6c | 65 6d 65 6e 74 65 64 20 |ser Impl|emented |
|00002740| 4f 70 74 69 6f 6e 73 0d | 0d 43 67 6d 4d 61 6b 65 |Options.|.CgmMake|
|00002750| 72 20 70 72 6f 76 69 64 | 65 73 20 61 20 73 6b 65 |r provid|es a ske|
|00002760| 6c 65 74 61 6c 20 66 72 | 61 6d 65 77 6f 72 6b 20 |letal fr|amework |
|00002770| 66 6f 72 20 65 78 70 65 | 72 69 6d 65 6e 74 69 6e |for expe|rimentin|
|00002780| 67 20 77 69 74 68 20 76 | 61 72 69 6f 75 73 20 74 |g with v|arious t|
|00002790| 65 63 68 6e 69 71 75 65 | 73 20 69 6e 20 74 68 65 |echnique|s in the|
|000027a0| 20 4d 61 63 69 6e 74 6f | 73 68 20 65 6e 76 69 72 | Macinto|sh envir|
|000027b0| 6f 6e 6d 65 6e 74 2e 20 | 20 46 6f 72 20 65 78 61 |onment. | For exa|
|000027c0| 6d 70 6c 65 2c 20 74 68 | 65 20 52 61 77 20 6d 65 |mple, th|e Raw me|
|000027d0| 6e 75 20 6f 70 74 69 6f | 6e 20 77 61 73 20 61 64 |nu optio|n was ad|
|000027e0| 64 65 64 20 61 73 20 61 | 20 75 73 65 72 20 69 6d |ded as a| user im|
|000027f0| 70 6c 65 6d 65 6e 74 65 | 64 20 6f 70 74 69 6f 6e |plemente|d option|
|00002800| 20 61 6e 64 20 74 68 69 | 73 20 73 65 63 74 69 6f | and thi|s sectio|
|00002810| 6e 20 77 69 6c 6c 20 64 | 65 74 61 69 6c 20 70 61 |n will d|etail pa|
|00002820| 72 74 20 6f 66 20 69 74 | 73 20 64 65 76 65 6c 6f |rt of it|s develo|
|00002830| 70 6d 65 6e 74 2e 0d 0d | 43 67 6d 4d 61 6b 65 72 |pment...|CgmMaker|
|00002840| 20 61 73 73 75 6d 65 73 | 20 74 68 65 20 67 72 61 | assumes| the gra|
|00002850| 70 68 69 63 73 20 69 73 | 20 63 6f 6e 76 65 72 74 |phics is| convert|
|00002860| 65 64 20 74 6f 20 50 49 | 43 54 20 61 6e 64 20 69 |ed to PI|CT and i|
|00002870| 6e 73 65 72 74 65 64 20 | 69 6e 74 6f 20 69 74 73 |nserted |into its|
|00002880| 20 67 6c 6f 62 61 6c 20 | 64 61 74 61 20 73 74 72 | global |data str|
|00002890| 75 63 74 75 72 65 20 28 | 63 75 72 72 65 6e 74 50 |ucture (|currentP|
|000028a0| 69 63 29 20 77 69 74 68 | 20 76 61 72 69 6f 75 73 |ic) with| various|
|000028b0| 20 64 65 73 63 72 69 70 | 74 69 76 65 20 69 6e 66 | descrip|tive inf|
|000028c0| 6f 72 6d 61 74 69 6f 6e | 20 73 65 74 2e 20 20 4f |ormation| set. O|
|000028d0| 6e 63 65 20 74 68 69 73 | 20 69 73 20 64 6f 6e 65 |nce this| is done|
|000028e0| 2c 20 43 67 6d 4d 61 6b | 65 72 20 77 69 6c 6c 20 |, CgmMak|er will |
|000028f0| 72 65 66 72 65 73 68 20 | 61 6e 64 20 6d 61 69 6e |refresh |and main|
|00002900| 74 61 69 6e 20 74 68 65 | 20 73 63 72 65 65 6e 20 |tain the| screen |
|00002910| 61 6e 64 20 70 72 6f 76 | 69 64 65 20 74 68 65 20 |and prov|ide the |
|00002920| 76 61 72 69 6f 75 73 20 | 73 61 76 69 6e 67 20 61 |various |saving a|
|00002930| 6e 64 20 63 6f 6e 76 65 | 72 73 69 6f 6e 20 6f 70 |nd conve|rsion op|
|00002940| 65 72 61 74 69 6f 6e 73 | 20 6f 6e 20 61 6e 79 20 |erations| on any |
|00002950| 50 49 43 54 20 67 72 61 | 70 68 69 63 20 70 75 74 |PICT gra|phic put|
|00002960| 20 69 6e 74 6f 20 69 74 | 73 20 64 61 74 61 20 73 | into it|s data s|
|00002970| 74 72 75 63 74 75 72 65 | 2e 20 20 49 74 73 20 6f |tructure|. Its o|
|00002980| 70 74 69 6f 6e 73 20 28 | 53 61 76 65 2c 20 4f 70 |ptions (|Save, Op|
|00002990| 65 6e 2e 2e 2e 29 20 61 | 72 65 20 61 63 63 65 73 |en...) a|re acces|
|000029a0| 73 65 64 20 76 69 61 20 | 61 20 70 75 6c 6c 20 64 |sed via |a pull d|
|000029b0| 6f 77 6e 20 6d 65 6e 75 | 2e 0d 0d 43 67 6d 4d 61 |own menu|...CgmMa|
|000029c0| 6b 65 72 20 73 75 70 70 | 6f 72 74 73 20 65 6e 68 |ker supp|orts enh|
|000029d0| 61 6e 63 65 6d 65 6e 74 | 73 20 62 79 20 73 65 6e |ancement|s by sen|
|000029e0| 64 69 6e 67 20 61 6e 79 | 20 70 75 6c 6c 20 64 6f |ding any| pull do|
|000029f0| 77 6e 20 6d 65 6e 75 20 | 72 65 71 75 65 73 74 20 |wn menu |request |
|00002a00| 77 68 69 63 68 20 69 74 | 20 64 6f 65 73 20 6e 6f |which it| does no|
|00002a10| 74 20 73 75 70 70 6f 72 | 74 20 74 6f 20 61 20 73 |t suppor|t to a s|
|00002a20| 74 61 6e 64 61 72 64 20 | 68 61 6e 64 6c 65 72 2c |tandard |handler,|
|00002a30| 20 79 6f 75 20 63 61 6e | 20 61 64 64 20 79 6f 75 | you can| add you|
|00002a40| 72 20 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |r implem|entation|
|00002a50| 20 74 6f 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | to the |standard|
|00002a60| 20 68 61 6e 64 6c 65 72 | 2e 20 20 41 64 64 20 61 | handler|. Add a|
|00002a70| 20 6d 65 6e 75 20 69 74 | 65 6d 20 77 69 74 68 20 | menu it|em with |
|00002a80| 52 65 73 45 64 69 74 20 | 61 6e 64 20 43 67 6d 4d |ResEdit |and CgmM|
|00002a90| 61 6b 65 72 20 77 69 6c | 6c 20 63 61 6c 6c 20 79 |aker wil|l call y|
|00002aa0| 6f 75 72 20 66 75 6e 63 | 74 69 6f 6e 20 77 68 65 |our func|tion whe|
|00002ab0| 6e 20 74 68 65 20 6d 65 | 6e 75 20 69 74 65 6d 20 |n the me|nu item |
|00002ac0| 69 73 20 73 65 6c 65 63 | 74 65 64 2e 20 20 59 6f |is selec|ted. Yo|
|00002ad0| 75 72 20 6d 65 6e 75 20 | 69 74 65 6d 73 20 63 61 |ur menu |items ca|
|00002ae0| 6e 20 62 65 20 61 64 64 | 65 64 20 74 6f 20 65 78 |n be add|ed to ex|
|00002af0| 69 73 74 69 6e 67 20 6d | 65 6e 75 73 20 6f 72 20 |isting m|enus or |
|00002b00| 65 6e 74 69 72 65 20 6e | 65 77 20 6d 65 6e 75 73 |entire n|ew menus|
|00002b10| 20 63 61 6e 20 62 65 20 | 63 72 65 61 74 65 64 20 | can be |created |
|00002b20| 61 73 20 77 61 73 20 74 | 68 65 20 52 61 77 20 6d |as was t|he Raw m|
|00002b30| 65 6e 75 2e 0d 0d 54 68 | 69 73 20 65 63 74 69 6f |enu...Th|is ectio|
|00002b40| 6e 20 67 75 69 64 65 73 | 20 79 6f 75 20 74 68 72 |n guides| you thr|
|00002b50| 6f 75 67 68 20 74 68 65 | 20 69 6d 70 6c 65 6d 65 |ough the| impleme|
|00002b60| 6e 74 61 74 69 6f 6e 20 | 6f 66 20 70 61 72 74 20 |ntation |of part |
|00002b70| 6f 66 20 74 68 65 20 52 | 61 77 20 6d 65 6e 75 2e |of the R|aw menu.|
|00002b80| 0d 0d 41 64 64 69 6e 67 | 20 52 61 77 20 74 6f 20 |..Adding| Raw to |
|00002b90| 43 67 6d 4d 61 6b 65 72 | 2e 0d 0d 55 73 65 20 61 |CgmMaker|...Use a|
|00002ba0| 20 72 65 73 6f 75 72 63 | 65 20 65 64 69 74 6f 72 | resourc|e editor|
|00002bb0| 2c 20 73 75 63 68 20 61 | 73 20 52 65 73 45 64 69 |, such a|s ResEdi|
|00002bc0| 74 2c 20 74 6f 20 63 72 | 65 61 74 65 20 61 20 6e |t, to cr|eate a n|
|00002bd0| 65 77 20 6d 65 6e 75 20 | 69 6e 20 43 67 6d 4d 61 |ew menu |in CgmMa|
|00002be0| 6b 65 72 2e 20 20 49 6e | 20 6f 75 72 20 63 61 73 |ker. In| our cas|
|00002bf0| 65 2c 20 74 68 65 20 52 | 61 77 20 6d 65 6e 75 20 |e, the R|aw menu |
|00002c00| 77 61 73 20 63 72 65 61 | 74 65 64 20 77 69 74 68 |was crea|ted with|
|00002c10| 20 74 68 65 20 72 65 73 | 6f 75 72 63 65 20 69 64 | the res|ource id|
|00002c20| 20 6f 66 20 32 35 39 3b | 20 69 2e 65 2e 20 74 68 | of 259;| i.e. th|
|00002c30| 65 20 6e 65 78 74 20 68 | 69 67 68 65 73 74 20 72 |e next h|ighest r|
|00002c40| 65 73 6f 75 72 63 65 20 | 69 64 20 6e 75 6d 62 65 |esource |id numbe|
|00002c50| 72 2e 0d 0d 43 67 6d 4d | 61 6b 65 72 20 70 72 6f |r...CgmM|aker pro|
|00002c60| 76 69 64 65 73 20 66 6f | 72 20 31 30 20 6d 65 6e |vides fo|r 10 men|
|00002c70| 75 73 2c 20 61 6e 64 20 | 6d 75 73 74 20 68 61 76 |us, and |must hav|
|00002c80| 65 20 74 68 65 20 41 70 | 70 6c 65 20 6d 65 6e 75 |e the Ap|ple menu|
|00002c90| 20 61 73 20 69 64 20 31 | 2c 20 46 69 6c 65 20 6d | as id 1|, File m|
|00002ca0| 65 6e 75 20 61 73 20 69 | 64 20 32 35 36 2c 20 45 |enu as i|d 256, E|
|00002cb0| 64 69 74 20 6d 65 6e 75 | 20 61 73 20 69 64 20 32 |dit menu| as id 2|
|00002cc0| 35 37 2c 20 61 6e 64 20 | 4f 70 74 69 6f 6e 73 20 |57, and |Options |
|00002cd0| 6d 65 6e 75 20 61 73 20 | 69 64 20 32 35 38 2e 20 |menu as |id 258. |
|00002ce0| 20 54 68 65 73 65 20 61 | 72 65 20 73 61 76 65 64 | These a|re saved|
|00002cf0| 20 69 6e 20 74 68 65 20 | 67 6c 6f 62 61 6c 20 4d | in the |global M|
|00002d00| 79 4d 65 6e 75 73 5b 30 | 2e 2e 2e 39 5d 2e 20 20 |yMenus[0|...9]. |
|00002d10| 49 74 20 63 6f 6e 74 69 | 6e 75 65 73 20 6c 6f 6f |It conti|nues loo|
|00002d20| 6b 69 6e 67 20 66 6f 72 | 20 74 68 65 20 69 64 27 |king for| the id'|
|00002d30| 73 20 69 6e 20 74 68 65 | 20 32 35 39 2e 2e 2e 32 |s in the| 259...2|
|00002d40| 36 34 20 72 61 6e 67 65 | 20 75 6e 74 69 6c 20 6f |64 range| until o|
|00002d50| 6e 65 20 69 73 20 6d 69 | 73 73 69 6e 67 20 61 6e |ne is mi|ssing an|
|00002d60| 64 20 74 68 65 6e 20 69 | 74 20 73 74 6f 70 73 20 |d then i|t stops |
|00002d70| 6c 6f 6f 6b 69 6e 67 20 | 66 6f 72 20 74 68 65 20 |looking |for the |
|00002d80| 6f 74 68 65 72 73 2e 20 | 20 0d 0d 49 66 20 79 6f |others. | ..If yo|
|00002d90| 75 20 73 74 61 72 74 20 | 74 68 69 73 20 76 65 72 |u start |this ver|
|00002da0| 73 69 6f 6e 20 61 6e 64 | 20 63 68 6f 6f 73 65 20 |sion and| choose |
|00002db0| 74 68 65 20 6e 65 77 6c | 79 20 69 6e 73 74 61 6c |the newl|y instal|
|00002dc0| 6c 65 64 20 6d 65 6e 75 | 20 69 74 65 6d 73 2c 20 |led menu| items, |
|00002dd0| 43 67 6d 4d 61 6b 65 72 | 20 77 69 6c 6c 20 64 69 |CgmMaker| will di|
|00002de0| 73 70 6c 61 79 20 74 68 | 65 20 6d 65 6e 75 20 69 |splay th|e menu i|
|00002df0| 64 20 61 6e 64 20 77 68 | 69 63 68 20 69 74 65 6d |d and wh|ich item|
|00002e00| 20 69 6e 20 74 68 65 20 | 6d 65 6e 75 20 77 61 73 | in the |menu was|
|00002e10| 20 73 65 6c 65 63 74 65 | 64 2e 20 20 0d 0d 4e 6f | selecte|d. ..No|
|00002e20| 77 20 74 68 65 20 67 6c | 6f 62 61 6c 20 64 61 74 |w the gl|obal dat|
|00002e30| 61 20 73 74 72 75 63 74 | 75 72 65 73 20 6e 65 65 |a struct|ures nee|
|00002e40| 64 65 64 20 61 6e 64 20 | 74 68 65 20 63 6f 64 69 |ded and |the codi|
|00002e50| 6e 67 20 6d 75 73 74 20 | 62 65 20 61 64 64 65 64 |ng must |be added|
|00002e60| 20 74 6f 20 43 67 6d 4d | 61 6b 65 72 73 20 6d 61 | to CgmM|akers ma|
|00002e70| 69 6e 20 72 6f 75 74 69 | 6e 65 2c 20 62 69 74 73 |in routi|ne, bits|
|00002e80| 2e 63 2e 20 20 46 6f 72 | 20 74 68 65 20 64 61 74 |.c. For| the dat|
|00002e90| 61 20 73 74 72 75 63 74 | 75 72 65 0d 0d 73 74 72 |a struct|ure..str|
|00002ea0| 75 63 74 20 72 61 77 44 | 61 74 61 20 0d 7b 20 20 |uct rawD|ata .{ |
|00002eb0| 20 20 20 20 20 73 68 6f | 72 74 20 20 20 20 20 20 | sho|rt |
|00002ec0| 20 20 20 20 20 62 79 74 | 65 73 50 65 72 52 6f 77 | byt|esPerRow|
|00002ed0| 2c 6e 75 6d 52 6f 77 73 | 3b 0d 20 20 20 20 20 20 |,numRows|;. |
|00002ee0| 20 20 48 61 6e 64 6c 65 | 20 20 20 20 20 20 20 20 | Handle| |
|00002ef0| 20 20 64 61 74 61 3b 0d | 20 20 20 20 20 20 20 20 | data;.| |
|00002f00| 7d 20 72 61 77 44 61 74 | 61 3b 0d 0d 0d 4f 75 72 |} rawDat|a;...Our|
|00002f10| 20 73 74 72 61 74 65 67 | 79 20 77 69 6c 6c 20 62 | strateg|y will b|
|00002f20| 65 20 74 6f 20 72 65 61 | 64 20 74 68 65 20 72 61 |e to rea|d the ra|
|00002f30| 77 20 64 61 74 61 20 69 | 6e 2c 20 6d 61 73 73 61 |w data i|n, massa|
|00002f40| 67 65 20 69 74 20 77 69 | 74 68 20 76 61 72 69 6f |ge it wi|th vario|
|00002f50| 75 73 20 63 6f 6c 6f 72 | 20 74 61 62 6c 65 73 20 |us color| tables |
|00002f60| 6f 72 20 70 61 6c 65 74 | 74 65 73 20 61 6e 64 20 |or palet|tes and |
|00002f70| 63 6f 6e 76 65 72 74 20 | 69 74 20 74 6f 20 50 49 |convert |it to PI|
|00002f80| 43 54 20 66 6f 72 20 6d | 61 6e 61 67 65 6d 65 6e |CT for m|anagemen|
|00002f90| 74 20 62 79 20 43 67 6d | 4d 61 6b 65 72 2e 20 20 |t by Cgm|Maker. |
|00002fa0| 57 68 65 6e 65 76 65 72 | 20 61 20 6e 65 77 20 63 |Whenever| a new c|
|00002fb0| 6f 6c 6f 72 20 74 61 62 | 6c 65 20 69 73 20 64 65 |olor tab|le is de|
|00002fc0| 73 69 72 65 64 2c 20 77 | 65 20 77 69 6c 6c 20 63 |sired, w|e will c|
|00002fd0| 72 65 61 74 65 20 61 20 | 6e 65 77 20 50 49 43 54 |reate a |new PICT|
|00002fe0| 20 66 72 6f 6d 20 74 68 | 65 20 72 61 77 20 64 61 | from th|e raw da|
|00002ff0| 74 61 20 61 6e 64 20 74 | 68 65 20 63 6f 6c 6f 72 |ta and t|he color|
|00003000| 20 74 61 62 6c 65 2e 0d | 0d 54 68 65 20 69 6e 69 | table..|.The ini|
|00003010| 74 69 61 6c 69 7a 61 74 | 69 6f 6e 20 69 73 20 61 |tializat|ion is a|
|00003020| 64 64 65 64 20 69 6e 20 | 4d 79 49 6e 69 74 69 61 |dded in |MyInitia|
|00003030| 6c 69 7a 65 20 69 6e 20 | 62 69 74 73 2e 63 0d 0d |lize in |bits.c..|
|00003040| 76 6f 69 64 20 4d 79 49 | 6e 69 74 69 61 6c 69 7a |void MyI|nitializ|
|00003050| 65 28 29 20 20 09 2f 2a | 20 63 61 6c 6c 65 64 20 |e() ./*| called |
|00003060| 61 74 20 74 68 65 20 65 | 6e 64 20 6f 66 20 63 67 |at the e|nd of cg|
|00003070| 6d 6d 61 6b 65 72 20 69 | 6e 69 74 69 61 6c 69 7a |mmaker i|nitializ|
|00003080| 65 20 2a 2f 0d 20 20 20 | 7b 20 20 20 72 61 77 44 |e */. |{ rawD|
|00003090| 61 74 61 2e 62 79 74 65 | 73 50 65 72 52 6f 77 3d |ata.byte|sPerRow=|
|000030a0| 30 3b 0d 20 20 20 20 20 | 20 72 61 77 44 61 74 61 |0;. | rawData|
|000030b0| 2e 64 61 74 61 3d 6e 69 | 6c 3b 0d 20 20 20 20 20 |.data=ni|l;. |
|000030c0| 20 72 65 74 75 72 6e 3b | 7d 0d 20 20 20 0d 4e 6f | return;|}. .No|
|000030d0| 77 20 61 64 64 20 74 68 | 65 20 63 68 61 6e 67 65 |w add th|e change|
|000030e0| 73 20 74 6f 20 74 68 65 | 20 73 74 61 6e 64 61 72 |s to the| standar|
|000030f0| 64 20 6d 65 6e 75 20 68 | 61 6e 64 6c 65 72 20 69 |d menu h|andler i|
|00003100| 6e 20 62 69 74 73 2e 63 | 0d 09 0d 76 6f 69 64 09 |n bits.c|...void.|
|00003110| 4d 79 41 64 64 65 64 4d | 65 6e 75 73 28 74 68 65 |MyAddedM|enus(the|
|00003120| 4d 65 6e 75 2c 74 68 65 | 49 74 65 6d 29 0d 20 20 |Menu,the|Item). |
|00003130| 20 73 68 6f 72 74 20 20 | 20 74 68 65 4d 65 6e 75 | short | theMenu|
|00003140| 2c 74 68 65 49 74 65 6d | 3b 0d 7b 20 20 20 0d 23 |,theItem|;.{ .#|
|00003150| 20 64 65 66 69 6e 65 20 | 72 61 77 49 44 20 6f 70 | define |rawID op|
|00003160| 74 49 44 2b 31 0d 23 20 | 64 65 66 69 6e 65 20 6f |tID+1.# |define o|
|00003170| 70 52 61 77 43 6f 6d 20 | 31 0d 23 20 64 65 66 69 |pRawCom |1.# defi|
|00003180| 6e 65 20 6f 70 50 61 6c | 43 6f 6d 20 32 0d 23 20 |ne opPal|Com 2.# |
|00003190| 64 65 66 69 6e 65 20 73 | 76 52 61 77 43 6f 6d 20 |define s|vRawCom |
|000031a0| 33 0d 23 20 64 65 66 69 | 6e 65 20 63 6f 6e 76 43 |3.# defi|ne convC|
|000031b0| 67 6d 43 6f 6d 20 34 0d | 23 20 64 65 66 69 6e 65 |gmCom 4.|# define|
|000031c0| 20 64 65 66 43 6f 6c 43 | 6f 6d 20 35 0d 23 20 64 | defColC|om 5.# d|
|000031d0| 65 66 69 6e 65 20 64 65 | 66 47 72 65 79 43 6f 6d |efine de|fGreyCom|
|000031e0| 20 36 0d 23 20 64 65 66 | 69 6e 65 20 63 6c 6e 52 | 6.# def|ine clnR|
|000031f0| 61 77 43 6f 6d 20 37 0d | 20 20 20 20 20 20 73 77 |awCom 7.| sw|
|00003200| 69 74 63 68 20 28 74 68 | 65 4d 65 6e 75 29 20 0d |itch (th|eMenu) .|
|00003210| 20 20 20 20 20 20 7b 20 | 20 20 63 61 73 65 20 72 | { | case r|
|00003220| 61 77 49 44 3a 0d 20 20 | 20 20 20 20 20 20 20 20 |awID:. | |
|00003230| 73 77 69 74 63 68 20 28 | 74 68 65 49 74 65 6d 29 |switch (|theItem)|
|00003240| 20 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 20 | . | { |
|00003250| 20 63 61 73 65 20 6f 70 | 52 61 77 43 6f 6d 3a 20 | case op|RawCom: |
|00003260| 52 65 61 64 52 61 77 44 | 61 74 61 28 74 72 75 65 |ReadRawD|ata(true|
|00003270| 29 3b 20 62 72 65 61 6b | 3b 0d 20 20 20 20 20 20 |); break|;. |
|00003280| 20 20 20 20 20 20 20 20 | 20 63 61 73 65 20 6f 70 | | case op|
|00003290| 50 61 6c 43 6f 6d 3a 20 | 52 65 61 64 52 61 77 44 |PalCom: |ReadRawD|
|000032a0| 61 74 61 28 66 61 6c 73 | 65 29 3b 20 62 72 65 61 |ata(fals|e); brea|
|000032b0| 6b 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |k;. | |
|000032c0| 20 20 63 61 73 65 20 73 | 76 52 61 77 43 6f 6d 3a | case s|vRawCom:|
|000032d0| 20 53 61 76 65 52 61 77 | 44 61 74 61 28 29 3b 20 | SaveRaw|Data(); |
|000032e0| 62 72 65 61 6b 3b 0d 20 | 20 20 20 20 20 20 20 20 |break;. | |
|000032f0| 20 20 20 20 20 20 63 61 | 73 65 20 63 6f 6e 76 43 | ca|se convC|
|00003300| 67 6d 43 6f 6d 3a 20 20 | 20 43 6f 6e 76 4d 75 6c |gmCom: | ConvMul|
|00003310| 43 67 6d 32 52 61 77 28 | 29 3b 20 62 72 65 61 6b |Cgm2Raw(|); break|
|00003320| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00003330| 20 63 61 73 65 20 64 65 | 66 43 6f 6c 43 6f 6d 3a | case de|fColCom:|
|00003340| 20 53 65 74 44 65 66 61 | 75 6c 74 50 61 6c 65 74 | SetDefa|ultPalet|
|00003350| 74 65 28 6d 79 57 69 6e | 64 6f 77 29 3b 0d 20 20 |te(myWin|dow);. |
|00003360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003370| 20 20 20 43 6f 6e 76 52 | 61 77 54 6f 50 69 63 74 | ConvR|awToPict|
|00003380| 28 29 3b 62 72 65 61 6b | 3b 0d 20 20 20 20 20 20 |();break|;. |
|00003390| 20 20 20 20 20 20 20 20 | 20 63 61 73 65 20 64 65 | | case de|
|000033a0| 66 47 72 65 79 43 6f 6d | 3a 20 53 65 74 47 72 65 |fGreyCom|: SetGre|
|000033b0| 79 50 61 6c 65 74 74 65 | 28 6d 79 57 69 6e 64 6f |yPalette|(myWindo|
|000033c0| 77 29 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |w);. | |
|000033d0| 20 20 20 20 20 20 20 20 | 20 43 6f 6e 76 52 61 77 | | ConvRaw|
|000033e0| 54 6f 50 69 63 74 28 29 | 3b 62 72 65 61 6b 3b 0d |ToPict()|;break;.|
|000033f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 63 | | c|
|00003400| 61 73 65 20 63 6c 6e 52 | 61 77 43 6f 6d 3a 20 0d |ase clnR|awCom: .|
|00003410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003420| 20 20 20 20 20 48 55 6e | 6c 6f 63 6b 28 72 61 77 | HUn|lock(raw|
|00003430| 44 61 74 61 2e 64 61 74 | 61 29 3b 0d 20 20 20 20 |Data.dat|a);. |
|00003440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003450| 20 44 69 73 70 6f 73 48 | 61 6e 64 6c 65 28 72 61 | DisposH|andle(ra|
|00003460| 77 44 61 74 61 2e 64 61 | 74 61 29 3b 0d 20 20 20 |wData.da|ta);. |
|00003470| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003480| 20 20 72 61 77 44 61 74 | 61 2e 64 61 74 61 3d 6e | rawDat|a.data=n|
|00003490| 69 6c 3b 20 0d 20 20 20 | 20 20 20 20 20 20 20 20 |il; . | |
|000034a0| 20 20 20 20 20 20 20 20 | 20 20 62 72 65 61 6b 3b | | break;|
|000034b0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000034c0| 64 65 66 61 75 6c 74 3a | 20 53 68 6f 77 4e 75 6d |default:| ShowNum|
|000034d0| 62 65 72 73 28 74 68 65 | 4d 65 6e 75 2c 74 68 65 |bers(the|Menu,the|
|000034e0| 49 74 65 6d 29 3b 20 62 | 72 65 61 6b 3b 0d 20 20 |Item); b|reak;. |
|000034f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7d 0d 20 | | }. |
|00003500| 20 20 20 20 20 20 20 20 | 62 72 65 61 6b 3b 0d 20 | |break;. |
|00003510| 20 20 20 20 20 20 20 20 | 64 65 66 61 75 6c 74 3a | |default:|
|00003520| 53 68 6f 77 4e 75 6d 62 | 65 72 73 28 74 68 65 4d |ShowNumb|ers(theM|
|00003530| 65 6e 75 2c 74 68 65 49 | 74 65 6d 29 3b 20 62 72 |enu,theI|tem); br|
|00003540| 65 61 6b 3b 0d 20 20 20 | 20 20 20 20 20 20 7d 0d |eak;. | }.|
|00003550| 20 20 20 20 20 20 72 65 | 74 75 72 6e 3b 0d 20 20 | re|turn;. |
|00003560| 20 20 20 20 7d 0d 0d 57 | 68 65 6e 65 76 65 72 20 | }..W|henever |
|00003570| 74 68 65 20 66 69 72 73 | 74 20 69 74 65 6d 20 69 |the firs|t item i|
|00003580| 6e 20 74 68 65 20 72 61 | 77 20 6d 65 6e 75 20 69 |n the ra|w menu i|
|00003590| 73 20 73 65 6c 65 63 74 | 65 64 2c 20 74 68 65 20 |s select|ed, the |
|000035a0| 6f 70 52 61 77 43 6f 6d | 20 63 61 73 65 20 77 69 |opRawCom| case wi|
|000035b0| 6c 6c 20 62 65 20 65 78 | 65 63 75 74 65 64 3b 20 |ll be ex|ecuted; |
|000035c0| 20 6f 70 50 61 6c 43 6f | 6d 20 63 61 73 65 20 77 | opPalCo|m case w|
|000035d0| 69 6c 6c 20 62 65 20 65 | 78 65 63 75 74 65 64 20 |ill be e|xecuted |
|000035e0| 77 68 65 6e 20 74 68 65 | 20 73 65 63 6f 6e 64 20 |when the| second |
|000035f0| 69 74 65 6d 20 69 6e 20 | 74 68 65 20 72 61 77 20 |item in |the raw |
|00003600| 6d 65 6e 75 20 69 73 20 | 73 65 6c 65 63 74 65 64 |menu is |selected|
|00003610| 2c 20 65 74 63 2e 0d 0d | 4f 6e 65 20 6e 65 65 64 |, etc...|One need|
|00003620| 65 64 20 75 74 69 6c 69 | 74 79 20 66 75 6e 63 74 |ed utili|ty funct|
|00003630| 69 6f 6e 20 69 73 20 74 | 6f 20 64 65 6c 65 74 65 |ion is t|o delete|
|00003640| 20 74 68 65 20 72 61 77 | 20 64 61 74 61 20 62 65 | the raw| data be|
|00003650| 66 6f 72 65 20 61 20 6e | 65 77 20 6f 6e 65 20 69 |fore a n|ew one i|
|00003660| 73 20 72 65 61 64 20 61 | 6e 64 20 74 6f 20 64 65 |s read a|nd to de|
|00003670| 61 6c 6c 6f 63 61 74 65 | 20 74 68 65 20 61 73 73 |allocate| the ass|
|00003680| 6f 63 69 61 74 65 64 20 | 73 74 6f 72 61 67 65 2e |ociated |storage.|
|00003690| 0d 0d 76 6f 69 64 20 43 | 6c 65 61 6e 55 70 52 61 |..void C|leanUpRa|
|000036a0| 77 44 61 74 61 28 29 0d | 20 20 20 7b 20 72 61 77 |wData().| { raw|
|000036b0| 44 61 74 61 2e 62 79 74 | 65 73 50 65 72 52 6f 77 |Data.byt|esPerRow|
|000036c0| 3d 30 3b 0d 20 20 20 20 | 20 20 48 55 6e 6c 6f 63 |=0;. | HUnloc|
|000036d0| 6b 28 72 61 77 44 61 74 | 61 2e 64 61 74 61 29 3b |k(rawDat|a.data);|
|000036e0| 0d 20 20 20 20 20 20 44 | 69 73 70 6f 73 48 61 6e |. D|isposHan|
|000036f0| 64 6c 65 28 72 61 77 44 | 61 74 61 2e 64 61 74 61 |dle(rawD|ata.data|
|00003700| 29 3b 0d 20 20 20 20 20 | 20 72 61 77 44 61 74 61 |);. | rawData|
|00003710| 2e 64 61 74 61 3d 6e 69 | 6c 3b 0d 20 20 20 20 20 |.data=ni|l;. |
|00003720| 20 72 65 74 75 72 6e 3b | 0d 20 20 20 20 20 20 7d | return;|. }|
|00003730| 0d 0d 0d 4e 6f 77 20 66 | 6f 72 20 74 68 65 20 72 |...Now f|or the r|
|00003740| 6f 75 74 69 6e 65 73 20 | 77 68 69 63 68 20 61 72 |outines |which ar|
|00003750| 65 20 75 73 65 64 20 69 | 6e 20 4d 79 41 64 64 65 |e used i|n MyAdde|
|00003760| 64 4d 65 6e 75 73 2c 20 | 69 2e 65 2e 20 74 68 65 |dMenus, |i.e. the|
|00003770| 20 66 75 6e 63 74 69 6f | 6e 73 20 6e 65 65 64 65 | functio|ns neede|
|00003780| 64 20 66 6f 72 20 74 68 | 65 20 52 61 77 20 6d 65 |d for th|e Raw me|
|00003790| 6e 75 2e 0d 0d 42 6f 74 | 68 20 6d 65 6e 75 20 69 |nu...Bot|h menu i|
|000037a0| 74 65 6d 73 20 28 52 65 | 61 64 20 44 61 74 61 20 |tems (Re|ad Data |
|000037b0| 61 6e 64 20 52 65 61 64 | 20 50 61 6c 65 74 74 65 |and Read| Palette|
|000037c0| 29 20 6e 65 65 64 20 74 | 6f 20 70 75 74 20 75 70 |) need t|o put up|
|000037d0| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 4d 61 | the sta|ndard Ma|
|000037e0| 63 69 6e 74 6f 73 68 20 | 66 69 6c 65 20 64 69 61 |cintosh |file dia|
|000037f0| 6c 6f 67 20 74 6f 20 6c | 65 74 20 74 68 65 20 75 |log to l|et the u|
|00003800| 73 65 72 20 63 68 6f 6f | 73 65 20 74 68 65 20 66 |ser choo|se the f|
|00003810| 69 6c 65 2c 20 74 68 65 | 6e 20 72 65 61 64 20 74 |ile, the|n read t|
|00003820| 68 65 20 64 61 74 61 2c | 20 63 72 65 61 74 65 20 |he data,| create |
|00003830| 61 20 50 49 43 54 20 66 | 6f 72 6d 20 6f 66 20 74 |a PICT f|orm of t|
|00003840| 68 65 20 72 61 77 20 64 | 61 74 61 20 61 6e 64 20 |he raw d|ata and |
|00003850| 70 75 74 20 69 74 20 77 | 68 65 72 65 20 43 67 6d |put it w|here Cgm|
|00003860| 4d 61 6b 65 72 20 63 61 | 6e 20 6d 61 6e 61 67 65 |Maker ca|n manage|
|00003870| 20 69 74 2e 20 20 57 45 | 20 77 69 6c 6c 20 77 61 | it. WE| will wa|
|00003880| 6e 74 20 74 6f 20 6b 65 | 65 70 20 74 68 65 20 72 |nt to ke|ep the r|
|00003890| 61 77 20 64 61 74 61 20 | 61 72 6f 75 6e 64 20 66 |aw data |around f|
|000038a0| 6f 72 20 6f 74 68 65 72 | 20 70 61 6c 65 74 74 65 |or other| palette|
|000038b0| 20 63 68 61 6e 67 65 73 | 2e 0d 09 09 0d 76 6f 69 | changes|.....voi|
|000038c0| 64 20 52 65 61 64 52 61 | 77 44 61 74 61 28 69 73 |d ReadRa|wData(is|
|000038d0| 44 61 74 61 29 0d 42 6f | 6f 6c 65 61 6e 20 69 73 |Data).Bo|olean is|
|000038e0| 44 61 74 61 3b 0d 20 20 | 20 7b 0d 20 20 20 50 6f |Data;. | {. Po|
|000038f0| 69 6e 74 20 20 20 20 20 | 20 20 20 20 20 20 20 77 |int | w|
|00003900| 68 65 72 65 3b 0d 20 20 | 20 53 46 52 65 70 6c 79 |here;. | SFReply|
|00003910| 20 20 20 20 20 20 20 20 | 20 72 65 70 6c 79 3b 0d | | reply;.|
|00003920| 20 20 20 53 46 54 79 70 | 65 4c 69 73 74 20 20 74 | SFTyp|eList t|
|00003930| 79 70 6c 3b 0d 20 20 20 | 73 68 6f 72 74 20 20 20 |ypl;. |short |
|00003940| 20 20 20 20 65 72 72 6f | 72 2c 72 65 66 6e 75 6d | erro|r,refnum|
|00003950| 3b 0d 20 20 20 73 68 6f | 72 74 20 20 20 20 20 20 |;. sho|rt |
|00003960| 20 6e 75 6d 62 79 74 65 | 73 3b 0d 20 20 20 20 20 | numbyte|s;. |
|00003970| 20 53 65 74 50 74 28 26 | 77 68 65 72 65 2c 32 35 | SetPt(&|where,25|
|00003980| 2c 35 30 29 3b 0d 20 20 | 20 20 20 20 74 79 70 6c |,50);. | typl|
|00003990| 5b 30 5d 3d 27 54 45 58 | 54 27 3b 0d 20 20 20 20 |[0]='TEX|T';. |
|000039a0| 20 20 74 79 70 6c 5b 31 | 5d 3d 27 52 41 57 42 27 | typl[1|]='RAWB'|
|000039b0| 3b 0d 20 20 20 20 20 20 | 69 66 20 28 69 73 44 61 |;. |if (isDa|
|000039c0| 74 61 29 20 7b 20 53 46 | 47 65 74 46 69 6c 65 28 |ta) { SF|GetFile(|
|000039d0| 26 77 68 65 72 65 2c 4e | 55 4c 4c 2c 6e 69 6c 2c |&where,N|ULL,nil,|
|000039e0| 31 2c 74 79 70 6c 2c 6e | 69 6c 2c 26 72 65 70 6c |1,typl,n|il,&repl|
|000039f0| 79 29 3b 7d 0d 20 20 20 | 20 20 20 20 20 20 65 6c |y);}. | el|
|00003a00| 73 65 20 7b 20 53 46 47 | 65 74 46 69 6c 65 28 26 |se { SFG|etFile(&|
|00003a10| 77 68 65 72 65 2c 4e 55 | 4c 4c 2c 6e 69 6c 2c 32 |where,NU|LL,nil,2|
|00003a20| 2c 74 79 70 6c 2c 6e 69 | 6c 2c 26 72 65 70 6c 79 |,typl,ni|l,&reply|
|00003a30| 29 3b 7d 0d 20 20 20 20 | 20 20 53 65 74 50 6f 72 |);}. | SetPor|
|00003a40| 74 28 6d 79 57 69 6e 64 | 6f 77 29 3b 0d 20 20 20 |t(myWind|ow);. |
|00003a50| 20 20 20 69 66 20 28 72 | 65 70 6c 79 2e 67 6f 6f | if (r|eply.goo|
|00003a60| 64 29 20 0d 20 20 20 20 | 20 20 7b 20 20 20 65 72 |d) . | { er|
|00003a70| 72 6f 72 3d 46 53 4f 70 | 65 6e 28 70 32 63 73 74 |ror=FSOp|en(p2cst|
|00003a80| 72 28 26 72 65 70 6c 79 | 2e 66 4e 61 6d 65 29 2c |r(&reply|.fName),|
|00003a90| 72 65 70 6c 79 2e 76 52 | 65 66 4e 75 6d 2c 26 72 |reply.vR|efNum,&r|
|00003aa0| 65 66 6e 75 6d 29 3b 0d | 20 20 20 20 20 20 20 20 |efnum);.| |
|00003ab0| 20 20 43 6f 70 79 53 74 | 72 28 26 72 65 70 6c 79 | CopySt|r(&reply|
|00003ac0| 2e 66 4e 61 6d 65 2c 63 | 75 72 72 65 6e 74 50 69 |.fName,c|urrentPi|
|00003ad0| 63 2e 6e 61 6d 65 29 3b | 0d 20 20 20 20 20 20 20 |c.name);|. |
|00003ae0| 20 20 20 63 75 72 72 65 | 6e 74 50 69 63 2e 76 72 | curre|ntPic.vr|
|00003af0| 65 66 3d 72 65 70 6c 79 | 2e 76 52 65 66 4e 75 6d |ef=reply|.vRefNum|
|00003b00| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 69 66 20 28 |;. | if (|
|00003b10| 69 73 44 61 74 61 29 0d | 20 20 20 20 20 20 20 20 |isData).| |
|00003b20| 20 20 7b 20 20 20 53 65 | 74 57 54 69 74 6c 65 28 | { Se|tWTitle(|
|00003b30| 6d 79 57 69 6e 64 6f 77 | 2c 26 72 65 70 6c 79 2e |myWindow|,&reply.|
|00003b40| 66 4e 61 6d 65 29 3b 20 | 47 65 74 52 61 77 44 61 |fName); |GetRawDa|
|00003b50| 74 61 28 72 65 66 6e 75 | 6d 29 3b 20 0d 20 20 20 |ta(refnu|m); . |
|00003b60| 20 20 20 20 20 20 20 20 | 20 20 20 43 6f 6e 76 52 | | ConvR|
|00003b70| 61 77 54 6f 50 69 63 74 | 28 29 3b 7d 0d 20 20 20 |awToPict|();}. |
|00003b80| 20 20 20 20 20 20 20 20 | 20 20 20 65 6c 73 65 20 | | else |
|00003b90| 7b 52 65 61 64 50 61 6c | 65 74 74 65 44 61 74 61 |{ReadPal|etteData|
|00003ba0| 28 72 65 66 6e 75 6d 29 | 3b 43 6f 6e 76 52 61 77 |(refnum)|;ConvRaw|
|00003bb0| 54 6f 50 69 63 74 28 29 | 3b 7d 0d 20 20 20 20 20 |ToPict()|;}. |
|00003bc0| 20 20 20 20 7d 0d 20 20 | 20 20 20 20 49 6e 76 61 | }. | Inva|
|00003bd0| 6c 52 65 63 74 28 26 70 | 52 65 63 74 29 3b 0d 20 |lRect(&p|Rect);. |
|00003be0| 20 20 20 20 20 7d 0d 0d | 53 46 47 65 74 46 69 6c | }..|SFGetFil|
|00003bf0| 65 20 70 75 74 73 20 75 | 70 20 74 68 65 20 73 74 |e puts u|p the st|
|00003c00| 61 6e 64 61 72 64 20 66 | 69 6c 65 20 64 69 61 6c |andard f|ile dial|
|00003c10| 6f 67 2c 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |og, retu|rns the |
|00003c20| 66 69 6c 65 20 64 61 74 | 61 20 69 6e 20 74 68 65 |file dat|a in the|
|00003c30| 20 72 65 70 6c 79 20 73 | 74 72 75 63 74 75 72 65 | reply s|tructure|
|00003c40| 3b 20 69 66 20 72 65 70 | 6c 79 2e 67 6f 6f 64 20 |; if rep|ly.good |
|00003c50| 69 73 20 74 72 75 65 2c | 20 74 68 65 20 75 73 65 |is true,| the use|
|00003c60| 72 20 63 68 6f 73 65 20 | 61 20 66 69 6c 65 20 61 |r chose |a file a|
|00003c70| 6e 64 20 73 65 6c 65 63 | 74 65 64 20 4f 4b 2e 20 |nd selec|ted OK. |
|00003c80| 20 49 66 20 74 68 65 20 | 75 73 65 20 63 6c 69 63 | If the |use clic|
|00003c90| 6b 65 64 20 4f 4b 2c 20 | 77 65 20 6f 70 65 6e 20 |ked OK, |we open |
|00003ca0| 74 68 65 20 66 69 6c 65 | 2c 20 73 61 76 65 20 74 |the file|, save t|
|00003cb0| 68 65 20 66 69 6c 65 20 | 6e 61 6d 65 20 6e 61 64 |he file |name nad|
|00003cc0| 20 64 69 72 65 63 74 6f | 72 79 20 69 6e 66 6f 20 | directo|ry info |
|00003cd0| 61 6e 64 20 63 61 6c 6c | 20 74 68 65 20 72 65 61 |and call| the rea|
|00003ce0| 64 20 64 61 74 61 20 66 | 75 6e 63 74 69 6f 6e 20 |d data f|unction |
|00003cf0| 6f 72 20 74 68 65 20 72 | 65 61 64 20 70 61 6c 65 |or the r|ead pale|
|00003d00| 74 74 65 20 66 75 6e 63 | 74 69 6f 6e 2e 20 20 42 |tte func|tion. B|
|00003d10| 65 66 6f 72 65 20 72 65 | 74 75 72 6e 69 6e 67 2c |efore re|turning,|
|00003d20| 20 77 65 20 70 6f 73 74 | 20 61 6e 64 20 75 70 64 | we post| and upd|
|00003d30| 61 74 65 20 65 76 65 6e | 74 20 66 6f 72 20 43 67 |ate even|t for Cg|
|00003d40| 6d 4d 61 6b 65 72 27 73 | 20 64 69 73 70 6c 61 79 |mMaker's| display|
|00003d50| 3b 20 74 68 65 20 49 6e | 76 61 6c 52 65 63 74 20 |; the In|valRect |
|00003d60| 63 61 6c 6c 2e 0d 0d 4e | 6f 77 20 74 6f 20 61 63 |call...N|ow to ac|
|00003d70| 74 75 61 6c 6c 79 20 72 | 65 61 64 20 74 68 65 20 |tually r|ead the |
|00003d80| 72 61 77 20 64 61 74 61 | 2e 20 20 46 69 72 73 74 |raw data|. First|
|00003d90| 20 63 6c 65 61 6e 20 75 | 70 20 74 68 65 20 70 72 | clean u|p the pr|
|00003da0| 65 76 69 6f 75 73 20 72 | 61 77 20 64 61 74 61 20 |evious r|aw data |
|00003db0| 61 6e 64 20 70 75 74 20 | 75 70 20 61 20 64 69 61 |and put |up a dia|
|00003dc0| 6c 6f 67 20 74 6f 20 61 | 73 6b 20 74 68 65 20 6e |log to a|sk the n|
|00003dd0| 75 6d 62 65 72 20 6f 66 | 20 70 69 78 65 6c 73 20 |umber of| pixels |
|00003de0| 70 65 72 20 72 6f 77 2e | 20 20 4f 75 72 20 72 61 |per row.| Our ra|
|00003df0| 77 20 64 61 74 61 20 77 | 69 6c 6c 20 62 65 20 74 |w data w|ill be t|
|00003e00| 68 65 20 64 61 74 61 20 | 66 6f 72 20 61 20 70 69 |he data |for a pi|
|00003e10| 78 65 6c 20 6d 61 70 20 | 61 6e 64 20 69 74 20 6d |xel map |and it m|
|00003e20| 75 73 74 20 62 65 20 61 | 6e 20 65 76 65 6e 20 6e |ust be a|n even n|
|00003e30| 75 6d 62 65 72 20 6f 66 | 20 62 79 74 65 73 20 70 |umber of| bytes p|
|00003e40| 65 72 20 72 6f 77 3b 20 | 74 68 69 73 20 63 6f 75 |er row; |this cou|
|00003e50| 6c 64 20 62 65 20 61 76 | 6f 69 64 65 64 20 62 79 |ld be av|oided by|
|00003e60| 20 72 65 61 64 69 6e 67 | 20 65 61 63 68 20 72 6f | reading| each ro|
|00003e70| 77 20 6f 66 20 64 61 74 | 61 20 73 65 70 61 72 61 |w of dat|a separa|
|00003e80| 74 65 6c 79 20 61 6e 64 | 20 70 61 64 64 69 6e 67 |tely and| padding|
|00003e90| 20 74 68 65 20 72 61 6f | 77 3b 20 74 68 69 73 20 | the rao|w; this |
|00003ea0| 77 61 73 20 64 6f 6e 65 | 20 69 6e 20 76 65 72 73 |was done| in vers|
|00003eb0| 69 6f 6e 20 31 2e 30 32 | 2e 20 20 54 68 65 6e 20 |ion 1.02|. Then |
|00003ec0| 73 65 65 20 68 6f 77 20 | 6c 6f 6e 67 20 74 68 65 |see how |long the|
|00003ed0| 20 69 6e 70 75 74 20 66 | 69 6c 65 20 69 73 20 28 | input f|ile is (|
|00003ee0| 47 65 74 45 4f 46 29 2c | 20 61 6c 6c 6f 63 61 74 |GetEOF),| allocat|
|00003ef0| 65 20 74 68 61 74 20 6d | 75 63 68 20 6d 65 6d 6f |e that m|uch memo|
|00003f00| 72 79 20 28 4e 65 77 48 | 61 6e 64 6c 65 29 20 61 |ry (NewH|andle) a|
|00003f10| 6e 64 20 72 65 61 64 20 | 74 68 65 20 64 61 74 61 |nd read |the data|
|00003f20| 20 28 46 53 52 65 61 64 | 29 2e 0d 09 09 0d 76 6f | (FSRead|).....vo|
|00003f30| 69 64 20 47 65 74 52 61 | 77 44 61 74 61 28 72 65 |id GetRa|wData(re|
|00003f40| 66 6e 75 6d 29 0d 73 68 | 6f 72 74 20 20 20 20 20 |fnum).sh|ort |
|00003f50| 20 72 65 66 6e 75 6d 3b | 0d 20 20 20 7b 0d 20 20 | refnum;|. {. |
|00003f60| 20 47 72 61 66 50 74 72 | 20 20 20 74 68 69 73 50 | GrafPtr| thisP|
|00003f70| 6f 72 74 3b 0d 20 20 20 | 53 74 72 32 35 35 20 20 |ort;. |Str255 |
|00003f80| 20 73 74 72 3b 0d 20 20 | 20 6c 6f 6e 67 20 20 20 | str;. | long |
|00003f90| 20 20 6e 75 6d 2c 6c 65 | 6e 66 69 6c 65 3b 0d 20 | num,le|nfile;. |
|00003fa0| 20 20 73 68 6f 72 74 20 | 20 20 20 69 74 65 6d 54 | short | itemT|
|00003fb0| 79 70 65 2c 69 74 65 6d | 48 69 74 2c 65 72 72 6f |ype,item|Hit,erro|
|00003fc0| 72 2c 69 3b 0d 20 20 20 | 52 65 63 74 20 20 20 20 |r,i;. |Rect |
|00003fd0| 20 69 74 65 6d 52 65 63 | 74 3b 0d 20 20 20 48 61 | itemRec|t;. Ha|
|00003fe0| 6e 64 6c 65 20 20 20 69 | 74 65 6d 48 64 6c 3b 0d |ndle i|temHdl;.|
|00003ff0| 20 20 20 44 69 61 6c 6f | 67 50 74 72 20 20 20 74 | Dialo|gPtr t|
|00004000| 68 65 44 69 61 6c 6f 67 | 3b 0d 20 20 20 63 68 61 |heDialog|;. cha|
|00004010| 72 20 20 20 20 20 20 20 | 20 20 2a 63 2c 2a 63 6d |r | *c,*cm|
|00004020| 61 78 2c 2a 62 3b 0d 20 | 20 20 20 20 20 43 6c 65 |ax,*b;. | Cle|
|00004030| 61 6e 55 70 52 61 77 44 | 61 74 61 28 29 3b 0d 20 |anUpRawD|ata();. |
|00004040| 20 20 20 20 20 47 65 74 | 50 6f 72 74 28 26 74 68 | Get|Port(&th|
|00004050| 69 73 50 6f 72 74 29 3b | 0d 20 20 20 20 20 20 74 |isPort);|. t|
|00004060| 68 65 44 69 61 6c 6f 67 | 20 3d 20 47 65 74 4e 65 |heDialog| = GetNe|
|00004070| 77 44 69 61 6c 6f 67 28 | 32 30 30 30 2c 20 6e 69 |wDialog(|2000, ni|
|00004080| 6c 2c 20 28 57 69 6e 64 | 6f 77 50 74 72 29 20 2d |l, (Wind|owPtr) -|
|00004090| 31 29 3b 0d 20 20 20 20 | 20 20 53 65 74 50 6f 72 |1);. | SetPor|
|000040a0| 74 28 74 68 65 44 69 61 | 6c 6f 67 29 3b 0d 20 20 |t(theDia|log);. |
|000040b0| 20 20 20 20 53 68 6f 77 | 57 69 6e 64 6f 77 28 74 | Show|Window(t|
|000040c0| 68 65 44 69 61 6c 6f 67 | 29 3b 0d 20 20 20 0d 20 |heDialog|);. . |
|000040d0| 20 20 20 20 20 47 65 74 | 44 49 74 65 6d 28 74 68 | Get|DItem(th|
|000040e0| 65 44 69 61 6c 6f 67 2c | 20 31 2c 20 26 69 74 65 |eDialog,| 1, &ite|
|000040f0| 6d 54 79 70 65 2c 20 26 | 69 74 65 6d 48 64 6c 2c |mType, &|itemHdl,|
|00004100| 20 26 69 74 65 6d 52 65 | 63 74 29 3b 20 2f 2a 20 | &itemRe|ct); /* |
|00004110| 6f 75 74 6c 69 6e 65 20 | 6f 6b 2a 2f 0d 20 20 20 |outline |ok*/. |
|00004120| 20 20 20 49 6e 73 65 74 | 52 65 63 74 28 26 69 74 | Inset|Rect(&it|
|00004130| 65 6d 52 65 63 74 2c 2d | 34 2c 2d 34 29 3b 0d 20 |emRect,-|4,-4);. |
|00004140| 20 20 20 20 20 50 65 6e | 53 69 7a 65 28 33 2c 33 | Pen|Size(3,3|
|00004150| 29 3b 0d 20 20 20 20 20 | 20 46 72 61 6d 65 52 6f |);. | FrameRo|
|00004160| 75 6e 64 52 65 63 74 28 | 26 69 74 65 6d 52 65 63 |undRect(|&itemRec|
|00004170| 74 2c 31 35 2c 31 35 29 | 3b 0d 20 20 20 20 20 20 |t,15,15)|;. |
|00004180| 50 65 6e 53 69 7a 65 28 | 31 2c 31 29 3b 0d 20 20 |PenSize(|1,1);. |
|00004190| 20 20 20 20 0d 20 20 20 | 20 20 20 50 61 72 61 6d | . | Param|
|000041a0| 54 65 78 74 28 63 75 72 | 72 65 6e 74 50 69 63 2e |Text(cur|rentPic.|
|000041b0| 6e 61 6d 65 2c 6e 69 6c | 2c 6e 69 6c 2c 6e 69 6c |name,nil|,nil,nil|
|000041c0| 29 3b 0d 20 20 20 20 20 | 20 47 65 74 44 49 74 65 |);. | GetDIte|
|000041d0| 6d 28 74 68 65 44 69 61 | 6c 6f 67 2c 20 35 2c 20 |m(theDia|log, 5, |
|000041e0| 26 69 74 65 6d 54 79 70 | 65 2c 20 26 69 74 65 6d |&itemTyp|e, &item|
|000041f0| 48 64 6c 2c 20 26 69 74 | 65 6d 52 65 63 74 29 3b |Hdl, &it|emRect);|
|00004200| 0d 20 20 20 20 20 20 63 | 3d 63 75 72 72 65 6e 74 |. c|=current|
|00004210| 50 69 63 2e 6e 61 6d 65 | 3b 20 20 20 20 20 20 20 |Pic.name|; |
|00004220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004230| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2a 20 72 | | /* r|
|00004240| 65 61 64 20 77 69 64 74 | 68 20 2a 2f 0d 20 20 20 |ead widt|h */. |
|00004250| 20 20 20 63 6d 61 78 3d | 63 2b 73 74 72 6c 65 6e | cmax=|c+strlen|
|00004260| 28 63 29 3b 0d 20 20 20 | 20 20 20 62 3d 20 26 73 |(c);. | b= &s|
|00004270| 74 72 3b 0d 20 20 20 20 | 20 20 77 68 69 6c 65 20 |tr;. | while |
|00004280| 28 20 28 63 3c 63 6d 61 | 78 29 20 26 26 20 28 2a |( (c<cma|x) && (*|
|00004290| 63 20 21 3d 20 27 28 27 | 29 20 29 20 7b 63 3d 63 |c != '('|) ) {c=c|
|000042a0| 2b 31 3b 7d 0d 20 20 20 | 20 20 20 63 3d 63 2b 31 |+1;}. | c=c+1|
|000042b0| 3b 20 20 20 20 20 20 20 | 20 20 20 20 2f 2a 66 69 |; | /*fi|
|000042c0| 72 73 74 20 64 69 67 69 | 74 2a 2f 0d 20 20 20 20 |rst digi|t*/. |
|000042d0| 20 20 77 68 69 6c 65 20 | 28 20 28 63 3c 63 6d 61 | while |( (c<cma|
|000042e0| 78 29 20 26 26 20 28 20 | 28 2a 63 20 3c 3d 20 27 |x) && ( |(*c <= '|
|000042f0| 39 27 29 20 26 26 20 28 | 2a 63 20 3e 3d 20 27 30 |9') && (|*c >= '0|
|00004300| 27 29 29 20 29 20 0d 20 | 20 20 20 20 20 20 20 7b |')) ) . | {|
|00004310| 2a 62 3d 2a 63 3b 63 3d | 63 2b 31 3b 62 3d 62 2b |*b=*c;c=|c+1;b=b+|
|00004320| 31 3b 7d 0d 20 20 20 20 | 20 20 2a 62 3d 27 5c 30 |1;}. | *b='\0|
|00004330| 27 3b 0d 20 20 20 20 20 | 20 28 76 6f 69 64 29 20 |';. | (void) |
|00004340| 63 32 70 73 74 72 28 26 | 73 74 72 29 3b 0d 20 20 |c2pstr(&|str);. |
|00004350| 20 20 20 20 53 45 54 49 | 54 45 58 54 28 69 74 65 | SETI|TEXT(ite|
|00004360| 6d 48 64 6c 2c 26 73 74 | 72 29 3b 0d 20 20 20 20 |mHdl,&st|r);. |
|00004370| 20 20 47 65 74 44 49 74 | 65 6d 28 74 68 65 44 69 | GetDIt|em(theDi|
|00004380| 61 6c 6f 67 2c 20 36 2c | 20 26 69 74 65 6d 54 79 |alog, 6,| &itemTy|
|00004390| 70 65 2c 20 26 69 74 65 | 6d 48 64 6c 2c 20 26 69 |pe, &ite|mHdl, &i|
|000043a0| 74 65 6d 52 65 63 74 29 | 3b 0d 20 20 20 20 20 20 |temRect)|;. |
|000043b0| 63 3d 63 2b 31 3b 0d 20 | 20 20 20 20 20 62 3d 20 |c=c+1;. | b= |
|000043c0| 26 73 74 72 3b 0d 20 20 | 20 20 20 20 77 68 69 6c |&str;. | whil|
|000043d0| 65 20 28 20 28 63 3c 63 | 6d 61 78 29 20 26 26 20 |e ( (c<c|max) && |
|000043e0| 28 20 28 2a 63 20 3c 20 | 27 30 27 29 20 7c 7c 20 |( (*c < |'0') || |
|000043f0| 28 2a 63 20 3e 20 27 39 | 27 29 29 20 29 7b 63 3d |(*c > '9|')) ){c=|
|00004400| 63 2b 31 3b 7d 0d 20 20 | 20 20 20 20 77 68 69 6c |c+1;}. | whil|
|00004410| 65 20 28 20 28 63 3c 63 | 6d 61 78 29 20 26 26 20 |e ( (c<c|max) && |
|00004420| 28 20 28 2a 63 20 3c 3d | 20 27 39 27 29 20 26 26 |( (*c <=| '9') &&|
|00004430| 20 28 2a 63 20 3e 3d 20 | 27 30 27 29 29 20 29 20 | (*c >= |'0')) ) |
|00004440| 0d 20 20 20 20 20 20 20 | 20 7b 2a 62 3d 2a 63 3b |. | {*b=*c;|
|00004450| 63 3d 63 2b 31 3b 62 3d | 62 2b 31 3b 7d 0d 20 20 |c=c+1;b=|b+1;}. |
|00004460| 20 20 20 20 2a 62 3d 27 | 5c 30 27 3b 0d 20 20 20 | *b='|\0';. |
|00004470| 20 20 20 28 76 6f 69 64 | 29 20 63 32 70 73 74 72 | (void|) c2pstr|
|00004480| 28 26 73 74 72 29 3b 0d | 20 20 20 20 20 20 53 45 |(&str);.| SE|
|00004490| 54 49 54 45 58 54 28 69 | 74 65 6d 48 64 6c 2c 26 |TITEXT(i|temHdl,&|
|000044a0| 73 74 72 29 3b 0d 0d 20 | 20 20 20 20 20 64 6f 20 |str);.. | do |
|000044b0| 7b 20 20 20 4d 6f 64 61 | 6c 44 69 61 6c 6f 67 28 |{ Moda|lDialog(|
|000044c0| 6e 69 6c 2c 20 26 69 74 | 65 6d 48 69 74 29 3b 7d |nil, &it|emHit);}|
|000044d0| 20 77 68 69 6c 65 20 28 | 69 74 65 6d 48 69 74 20 | while (|itemHit |
|000044e0| 21 3d 20 6f 6b 29 3b 0d | 20 20 20 0d 20 20 20 20 |!= ok);.| . |
|000044f0| 20 20 47 65 74 44 49 74 | 65 6d 28 74 68 65 44 69 | GetDIt|em(theDi|
|00004500| 61 6c 6f 67 2c 20 35 2c | 20 26 69 74 65 6d 54 79 |alog, 5,| &itemTy|
|00004510| 70 65 2c 20 26 69 74 65 | 6d 48 64 6c 2c 20 26 69 |pe, &ite|mHdl, &i|
|00004520| 74 65 6d 52 65 63 74 29 | 3b 20 20 0d 20 20 20 20 |temRect)|; . |
|00004530| 20 20 47 45 54 49 54 45 | 58 54 28 69 74 65 6d 48 | GETITE|XT(itemH|
|00004540| 64 6c 2c 26 73 74 72 29 | 3b 0d 20 20 20 20 20 20 |dl,&str)|;. |
|00004550| 53 54 52 49 4e 47 54 4f | 4e 55 4d 28 26 73 74 72 |STRINGTO|NUM(&str|
|00004560| 2c 26 6e 75 6d 29 3b 0d | 20 20 20 20 20 20 72 61 |,&num);.| ra|
|00004570| 77 44 61 74 61 2e 62 79 | 74 65 73 50 65 72 52 6f |wData.by|tesPerRo|
|00004580| 77 3d 6e 75 6d 3b 0d 20 | 20 20 20 20 20 69 66 20 |w=num;. | if |
|00004590| 28 72 61 77 44 61 74 61 | 2e 62 79 74 65 73 50 65 |(rawData|.bytesPe|
|000045a0| 72 52 6f 77 3c 31 29 20 | 7b 72 61 77 44 61 74 61 |rRow<1) |{rawData|
|000045b0| 2e 62 79 74 65 73 50 65 | 72 52 6f 77 3d 31 3b 7d |.bytesPe|rRow=1;}|
|000045c0| 0d 20 20 20 20 20 20 47 | 65 74 44 49 74 65 6d 28 |. G|etDItem(|
|000045d0| 74 68 65 44 69 61 6c 6f | 67 2c 20 36 2c 20 26 69 |theDialo|g, 6, &i|
|000045e0| 74 65 6d 54 79 70 65 2c | 20 26 69 74 65 6d 48 64 |temType,| &itemHd|
|000045f0| 6c 2c 20 26 69 74 65 6d | 52 65 63 74 29 3b 20 20 |l, &item|Rect); |
|00004600| 0d 20 20 20 20 20 20 47 | 45 54 49 54 45 58 54 28 |. G|ETITEXT(|
|00004610| 69 74 65 6d 48 64 6c 2c | 26 73 74 72 29 3b 0d 20 |itemHdl,|&str);. |
|00004620| 20 20 20 20 20 53 54 52 | 49 4e 47 54 4f 4e 55 4d | STR|INGTONUM|
|00004630| 28 26 73 74 72 2c 26 6e | 75 6d 29 3b 0d 20 20 20 |(&str,&n|um);. |
|00004640| 20 20 20 72 61 77 44 61 | 74 61 2e 6e 75 6d 52 6f | rawDa|ta.numRo|
|00004650| 77 73 3d 6e 75 6d 3b 0d | 20 20 20 20 20 20 69 66 |ws=num;.| if|
|00004660| 20 28 72 61 77 44 61 74 | 61 2e 6e 75 6d 52 6f 77 | (rawDat|a.numRow|
|00004670| 73 3c 31 29 20 7b 72 61 | 77 44 61 74 61 2e 6e 75 |s<1) {ra|wData.nu|
|00004680| 6d 52 6f 77 73 3d 31 3b | 7d 0d 20 20 20 20 20 20 |mRows=1;|}. |
|00004690| 44 69 73 70 6f 73 44 69 | 61 6c 6f 67 28 74 68 65 |DisposDi|alog(the|
|000046a0| 44 69 61 6c 6f 67 29 3b | 0d 20 20 20 20 20 20 0d |Dialog);|. .|
|000046b0| 20 20 20 20 20 20 0d 20 | 20 20 20 20 20 65 72 72 | . | err|
|000046c0| 6f 72 3d 47 65 74 45 4f | 46 28 72 65 66 6e 75 6d |or=GetEO|F(refnum|
|000046d0| 2c 26 6c 65 6e 66 69 6c | 65 29 3b 0d 20 20 20 20 |,&lenfil|e);. |
|000046e0| 20 20 65 72 72 6f 72 3d | 65 72 72 6f 72 2b 53 65 | error=|error+Se|
|000046f0| 74 46 50 6f 73 28 72 65 | 66 6e 75 6d 2c 66 73 46 |tFPos(re|fnum,fsF|
|00004700| 72 6f 6d 53 74 61 72 74 | 2c 30 29 3b 0d 20 20 20 |romStart|,0);. |
|00004710| 20 20 20 72 61 77 44 61 | 74 61 2e 64 61 74 61 3d | rawDa|ta.data=|
|00004720| 4e 65 77 48 61 6e 64 6c | 65 28 6c 65 6e 66 69 6c |NewHandl|e(lenfil|
|00004730| 65 29 3b 0d 20 20 20 20 | 20 20 69 66 20 28 72 61 |e);. | if (ra|
|00004740| 77 44 61 74 61 2e 64 61 | 74 61 20 21 3d 20 6e 69 |wData.da|ta != ni|
|00004750| 6c 29 0d 20 20 20 20 20 | 20 7b 20 48 4c 6f 63 6b |l). | { HLock|
|00004760| 28 72 61 77 44 61 74 61 | 2e 64 61 74 61 29 3b 0d |(rawData|.data);.|
|00004770| 20 20 20 20 20 20 20 20 | 20 65 72 72 6f 72 3d 46 | | error=F|
|00004780| 53 52 65 61 64 28 72 65 | 66 6e 75 6d 2c 26 6c 65 |SRead(re|fnum,&le|
|00004790| 6e 66 69 6c 65 2c 2a 28 | 72 61 77 44 61 74 61 2e |nfile,*(|rawData.|
|000047a0| 64 61 74 61 29 29 3b 0d | 20 20 20 20 20 20 20 20 |data));.| |
|000047b0| 20 48 55 6e 6c 6f 63 6b | 28 72 61 77 44 61 74 61 | HUnlock|(rawData|
|000047c0| 2e 64 61 74 61 29 3b 0d | 20 20 20 20 20 20 20 20 |.data);.| |
|000047d0| 20 7d 0d 20 20 20 20 20 | 20 65 72 72 6f 72 3d 46 | }. | error=F|
|000047e0| 53 43 6c 6f 73 65 28 72 | 65 66 6e 75 6d 29 3b 0d |SClose(r|efnum);.|
|000047f0| 20 20 20 20 20 20 53 65 | 74 50 6f 72 74 28 74 68 | Se|tPort(th|
|00004800| 69 73 50 6f 72 74 29 3b | 0d 20 20 20 20 20 20 45 |isPort);|. E|
|00004810| 72 61 73 65 52 65 63 74 | 28 26 28 74 68 69 73 50 |raseRect|(&(thisP|
|00004820| 6f 72 74 2d 3e 70 6f 72 | 74 52 65 63 74 29 29 3b |ort->por|tRect));|
|00004830| 0d 20 20 20 20 20 20 72 | 65 74 75 72 6e 3b 0d 20 |. r|eturn;. |
|00004840| 20 20 20 20 20 7d 0d 20 | 20 20 20 20 20 0d 0d 4d | }. | ..M|
|00004850| 61 6b 69 6e 67 20 61 20 | 50 49 43 54 20 66 72 6f |aking a |PICT fro|
|00004860| 6d 20 74 68 65 20 72 61 | 77 20 64 61 74 61 20 69 |m the ra|w data i|
|00004870| 73 20 6d 6f 72 65 20 64 | 69 66 66 69 63 75 6c 74 |s more d|ifficult|
|00004880| 2e 20 20 57 65 20 63 6c | 65 61 6e 20 75 70 20 43 |. We cl|ean up C|
|00004890| 67 6d 4d 61 6b 65 72 27 | 73 20 50 49 43 54 20 28 |gmMaker'|s PICT (|
|000048a0| 43 6c 65 61 6e 55 70 43 | 75 72 72 65 6e 74 50 69 |CleanUpC|urrentPi|
|000048b0| 63 29 2c 20 63 72 65 61 | 74 65 20 61 20 70 69 78 |c), crea|te a pix|
|000048c0| 65 6c 20 6d 61 70 20 77 | 69 74 68 20 61 20 70 6f |el map w|ith a po|
|000048d0| 69 6e 74 65 72 20 74 6f | 20 6f 75 72 20 72 61 77 |inter to| our raw|
|000048e0| 20 64 61 74 61 20 61 6e | 64 20 61 20 63 6f 6c 6f | data an|d a colo|
|000048f0| 72 20 74 61 62 6c 65 20 | 63 72 65 61 74 65 64 20 |r table |created |
|00004900| 66 72 6f 6d 20 74 68 65 | 20 63 75 72 72 65 6e 74 |from the| current|
|00004910| 20 68 61 72 77 61 72 65 | 20 63 6f 6c 6f 72 20 6c | harware| color l|
|00004920| 6f 6f 6b 75 70 20 74 61 | 62 6c 65 2e 20 20 41 20 |ookup ta|ble. A |
|00004930| 50 49 43 54 20 69 73 20 | 63 72 65 61 74 65 64 20 |PICT is |created |
|00004940| 66 6f 72 20 43 67 6d 4d | 61 6b 65 72 20 77 69 74 |for CgmM|aker wit|
|00004950| 68 20 63 75 72 72 65 6e | 74 50 69 63 2e 64 72 61 |h curren|tPic.dra|
|00004960| 77 50 69 63 20 3d 20 4f | 70 65 6e 50 69 63 74 75 |wPic = O|penPictu|
|00004970| 72 65 28 26 70 69 63 66 | 72 61 6d 65 29 2c 20 63 |re(&picf|rame), c|
|00004980| 6f 70 79 69 6e 67 20 74 | 68 65 20 70 69 78 65 6c |opying t|he pixel|
|00004990| 20 6d 61 70 20 28 43 6f | 70 79 42 69 74 73 29 20 | map (Co|pyBits) |
|000049a0| 61 6e 64 20 63 6c 6f 73 | 69 6e 67 20 74 68 65 20 |and clos|ing the |
|000049b0| 70 69 63 74 75 72 65 2e | 20 20 57 68 65 6e 20 43 |picture.| When C|
|000049c0| 6f 6e 76 52 61 77 54 6f | 50 69 63 20 66 69 6e 69 |onvRawTo|Pic fini|
|000049d0| 73 68 65 73 2c 20 61 20 | 6e 65 77 20 50 49 43 54 |shes, a |new PICT|
|000049e0| 20 69 73 20 69 6e 20 43 | 67 6d 4d 61 6b 65 72 27 | is in C|gmMaker'|
|000049f0| 73 20 63 75 72 72 65 6e | 74 50 69 63 20 73 74 72 |s curren|tPic str|
|00004a00| 75 63 74 75 72 65 2e 0d | 09 0d 76 6f 69 64 20 43 |ucture..|..void C|
|00004a10| 6f 6e 76 52 61 77 54 6f | 50 69 63 74 28 29 0d 20 |onvRawTo|Pict(). |
|00004a20| 20 20 7b 0d 20 20 20 73 | 68 6f 72 74 20 20 20 20 | {. s|hort |
|00004a30| 20 20 20 20 20 20 20 20 | 69 3b 0d 20 20 20 50 61 | |i;. Pa|
|00004a40| 6c 65 74 74 65 48 61 6e | 64 6c 65 20 20 20 74 68 |letteHan|dle th|
|00004a50| 69 73 50 61 6c 65 74 74 | 65 3b 20 20 20 0d 20 20 |isPalett|e; . |
|00004a60| 20 50 69 78 4d 61 70 48 | 61 6e 64 6c 65 20 20 20 | PixMapH|andle |
|00004a70| 70 6d 68 3b 0d 20 20 20 | 52 65 63 74 20 20 20 70 |pmh;. |Rect p|
|00004a80| 69 63 66 72 61 6d 65 3b | 0d 20 20 20 43 47 72 61 |icframe;|. CGra|
|00004a90| 66 50 74 72 20 20 20 74 | 68 69 73 50 6f 72 74 3b |fPtr t|hisPort;|
|00004aa0| 0d 20 20 20 0d 20 20 20 | 20 20 20 43 6c 65 61 6e |. . | Clean|
|00004ab0| 55 70 43 75 72 72 65 6e | 74 50 69 63 28 29 3b 0d |UpCurren|tPic();.|
|00004ac0| 20 20 20 20 20 20 69 66 | 20 28 72 61 77 44 61 74 | if| (rawDat|
|00004ad0| 61 2e 64 61 74 61 20 21 | 3d 20 6e 69 6c 29 0d 20 |a.data !|= nil). |
|00004ae0| 20 20 20 20 20 7b 0d 0d | 20 20 20 20 20 20 20 20 | {..| |
|00004af0| 20 53 65 74 50 6f 72 74 | 28 6d 79 57 69 6e 64 6f | SetPort|(myWindo|
|00004b00| 77 29 3b 0d 20 20 20 20 | 20 20 20 20 20 41 63 74 |w);. | Act|
|00004b10| 69 76 61 74 65 50 61 6c | 65 74 74 65 28 6d 79 57 |ivatePal|ette(myW|
|00004b20| 69 6e 64 6f 77 29 3b 0d | 20 20 20 0d 20 20 20 20 |indow);.| . |
|00004b30| 20 20 20 20 20 70 6d 68 | 3d 4e 65 77 50 69 78 4d | pmh|=NewPixM|
|00004b40| 61 70 28 29 3b 0d 20 20 | 20 20 20 20 20 20 20 48 |ap();. | H|
|00004b50| 4c 6f 63 6b 28 70 6d 68 | 29 3b 0d 20 20 20 20 20 |Lock(pmh|);. |
|00004b60| 20 20 20 20 48 4c 6f 63 | 6b 28 72 61 77 44 61 74 | HLoc|k(rawDat|
|00004b70| 61 2e 64 61 74 61 29 3b | 0d 20 20 20 20 20 20 20 |a.data);|. |
|00004b80| 20 20 47 65 74 50 6f 72 | 74 28 26 74 68 69 73 50 | GetPor|t(&thisP|
|00004b90| 6f 72 74 29 3b 0d 20 20 | 20 20 20 20 20 20 20 44 |ort);. | D|
|00004ba0| 69 73 70 6f 73 48 61 6e | 64 6c 65 28 28 2a 2a 70 |isposHan|dle((**p|
|00004bb0| 6d 68 29 2e 70 6d 54 61 | 62 6c 65 29 3b 0d 20 20 |mh).pmTa|ble);. |
|00004bc0| 20 20 20 20 20 20 20 28 | 2a 2a 70 6d 68 29 2e 70 | (|**pmh).p|
|00004bd0| 6d 54 61 62 6c 65 3d 47 | 65 74 43 54 61 62 6c 65 |mTable=G|etCTable|
|00004be0| 28 38 29 3b 0d 20 20 20 | 20 20 20 20 20 20 74 68 |(8);. | th|
|00004bf0| 69 73 50 61 6c 65 74 74 | 65 3d 47 65 74 50 61 6c |isPalett|e=GetPal|
|00004c00| 65 74 74 65 28 74 68 69 | 73 50 6f 72 74 29 3b 0d |ette(thi|sPort);.|
|00004c10| 20 20 20 20 20 20 20 20 | 20 50 61 6c 65 74 74 65 | | Palette|
|00004c20| 32 43 54 61 62 28 74 68 | 69 73 50 61 6c 65 74 74 |2CTab(th|isPalett|
|00004c30| 65 2c 28 2a 2a 70 6d 68 | 29 2e 70 6d 54 61 62 6c |e,(**pmh|).pmTabl|
|00004c40| 65 29 3b 0d 20 20 20 20 | 20 20 20 20 20 28 2a 2a |e);. | (**|
|00004c50| 70 6d 68 29 2e 62 61 73 | 65 41 64 64 72 3d 2a 28 |pmh).bas|eAddr=*(|
|00004c60| 72 61 77 44 61 74 61 2e | 64 61 74 61 29 3b 0d 20 |rawData.|data);. |
|00004c70| 20 20 20 20 20 20 20 20 | 28 2a 2a 70 6d 68 29 2e | |(**pmh).|
|00004c80| 72 6f 77 42 79 74 65 73 | 3d 72 61 77 44 61 74 61 |rowBytes|=rawData|
|00004c90| 2e 62 79 74 65 73 50 65 | 72 52 6f 77 20 7c 20 30 |.bytesPe|rRow | 0|
|00004ca0| 78 38 30 30 30 3b 0d 20 | 20 20 20 20 20 20 20 20 |x8000;. | |
|00004cb0| 28 2a 2a 70 6d 68 29 2e | 70 69 78 65 6c 53 69 7a |(**pmh).|pixelSiz|
|00004cc0| 65 3d 38 3b 0d 20 20 20 | 20 20 20 20 20 20 0d 20 |e=8;. | . |
|00004cd0| 20 20 20 20 20 20 20 20 | 53 45 54 52 45 43 54 28 | |SETRECT(|
|00004ce0| 26 28 28 2a 2a 70 6d 68 | 29 2e 62 6f 75 6e 64 73 |&((**pmh|).bounds|
|00004cf0| 29 2c 20 30 2c 20 30 2c | 20 72 61 77 44 61 74 61 |), 0, 0,| rawData|
|00004d00| 2e 62 79 74 65 73 50 65 | 72 52 6f 77 2c 20 20 0d |.bytesPe|rRow, .|
|00004d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 61 77 44 | | rawD|
|00004d20| 61 74 61 2e 6e 75 6d 52 | 6f 77 73 29 3b 0d 20 20 |ata.numR|ows);. |
|00004d30| 20 20 20 20 20 20 20 53 | 65 74 52 65 63 74 28 26 | S|etRect(&|
|00004d40| 70 69 63 66 72 61 6d 65 | 2c 30 2c 30 2c 72 61 77 |picframe|,0,0,raw|
|00004d50| 44 61 74 61 2e 62 79 74 | 65 73 50 65 72 52 6f 77 |Data.byt|esPerRow|
|00004d60| 2c 72 61 77 44 61 74 61 | 2e 6e 75 6d 52 6f 77 73 |,rawData|.numRows|
|00004d70| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 63 75 72 72 |);. | curr|
|00004d80| 65 6e 74 50 69 63 2e 70 | 69 63 54 79 70 65 3d 50 |entPic.p|icType=P|
|00004d90| 49 43 54 3b 0d 20 20 20 | 20 20 20 20 20 20 43 6c |ICT;. | Cl|
|00004da0| 69 70 52 65 63 74 28 26 | 70 69 63 66 72 61 6d 65 |ipRect(&|picframe|
|00004db0| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 63 75 72 72 |);. | curr|
|00004dc0| 65 6e 74 50 69 63 2e 64 | 72 61 77 50 69 63 3d 4f |entPic.d|rawPic=O|
|00004dd0| 70 65 6e 50 69 63 74 75 | 72 65 28 26 70 69 63 66 |penPictu|re(&picf|
|00004de0| 72 61 6d 65 29 3b 0d 20 | 20 20 20 20 20 20 20 20 |rame);. | |
|00004df0| 43 6f 70 79 42 69 74 73 | 28 2a 70 6d 68 2c 26 28 |CopyBits|(*pmh,&(|
|00004e00| 6d 79 57 69 6e 64 6f 77 | 2d 3e 70 6f 72 74 42 69 |myWindow|->portBi|
|00004e10| 74 73 29 2c 20 26 28 28 | 2a 2a 70 6d 68 29 2e 62 |ts), &((|**pmh).b|
|00004e20| 6f 75 6e 64 73 29 2c 20 | 0d 20 20 20 20 20 20 20 |ounds), |. |
|00004e30| 20 20 20 20 20 26 28 28 | 2a 2a 70 6d 68 29 2e 62 | &((|**pmh).b|
|00004e40| 6f 75 6e 64 73 29 2c 20 | 73 72 63 43 6f 70 79 2c |ounds), |srcCopy,|
|00004e50| 6e 69 6c 29 3b 0d 20 20 | 20 20 20 20 20 20 20 43 |nil);. | C|
|00004e60| 6c 6f 73 65 50 69 63 74 | 75 72 65 28 29 3b 0d 20 |losePict|ure();. |
|00004e70| 20 20 20 20 20 20 20 20 | 48 55 6e 6c 6f 63 6b 28 | |HUnlock(|
|00004e80| 63 75 72 72 65 6e 74 50 | 69 63 2e 64 72 61 77 50 |currentP|ic.drawP|
|00004e90| 69 63 29 3b 0d 20 20 20 | 20 20 20 20 20 20 48 55 |ic);. | HU|
|00004ea0| 6e 6c 6f 63 6b 28 72 61 | 77 44 61 74 61 2e 64 61 |nlock(ra|wData.da|
|00004eb0| 74 61 29 3b 0d 20 20 20 | 20 20 20 20 20 20 43 6c |ta);. | Cl|
|00004ec0| 69 70 52 65 63 74 28 26 | 70 52 65 63 74 29 3b 0d |ipRect(&|pRect);.|
|00004ed0| 20 20 20 20 20 20 20 20 | 20 53 65 74 43 75 72 73 | | SetCurs|
|00004ee0| 6f 72 28 26 71 64 2e 61 | 72 72 6f 77 29 3b 0d 20 |or(&qd.a|rrow);. |
|00004ef0| 20 20 20 20 20 20 20 20 | 28 2a 2a 70 6d 68 29 2e | |(**pmh).|
|00004f00| 62 61 73 65 41 64 64 72 | 3d 6e 69 6c 3b 0d 20 20 |baseAddr|=nil;. |
|00004f10| 20 20 20 20 20 20 20 44 | 69 73 70 6f 73 50 69 78 | D|isposPix|
|00004f20| 4d 61 70 28 70 6d 68 29 | 3b 0d 20 20 20 20 20 20 |Map(pmh)|;. |
|00004f30| 20 20 20 63 75 72 72 65 | 6e 74 50 69 63 2e 70 69 | curre|ntPic.pi|
|00004f40| 63 54 79 70 65 3d 50 49 | 43 54 3b 0d 20 20 20 20 |cType=PI|CT;. |
|00004f50| 20 20 20 20 20 63 75 72 | 72 65 6e 74 50 69 63 2e | cur|rentPic.|
|00004f60| 66 69 6c 65 54 79 70 65 | 3d 6e 6f 6e 65 3b 0d 20 |fileType|=none;. |
|00004f70| 20 20 20 20 20 20 20 20 | 52 65 73 65 74 50 69 63 | |ResetPic|
|00004f80| 4f 72 69 67 69 6e 28 29 | 3b 0d 20 20 20 20 20 20 |Origin()|;. |
|00004f90| 20 20 20 63 75 72 72 65 | 6e 74 50 69 63 2e 70 69 | curre|ntPic.pi|
|00004fa0| 78 65 6c 4d 61 70 4f 6e | 6c 79 3d 74 72 75 65 3b |xelMapOn|ly=true;|
|00004fb0| 0d 20 20 20 20 20 20 20 | 20 20 44 72 61 77 4d 65 |. | DrawMe|
|00004fc0| 6e 75 42 61 72 28 29 3b | 0d 20 20 20 20 20 20 20 |nuBar();|. |
|00004fd0| 20 20 45 6e 61 62 6c 65 | 49 74 65 6d 28 4d 79 4d | Enable|Item(MyM|
|00004fe0| 65 6e 75 73 5b 66 69 6c | 65 4d 65 6e 75 5d 2c 73 |enus[fil|eMenu],s|
|00004ff0| 61 76 65 43 6f 6d 6d 61 | 6e 64 29 3b 0d 20 20 20 |aveComma|nd);. |
|00005000| 20 20 20 20 20 20 7d 0d | 20 20 20 20 20 20 72 65 | }.| re|
|00005010| 74 75 72 6e 3b 0d 20 20 | 20 20 20 20 7d 0d 0d 52 |turn;. | }..R|
|00005020| 65 61 64 69 6e 67 20 70 | 61 6c 65 74 74 65 20 6f |eading p|alette o|
|00005030| 72 20 63 6f 6c 6f 72 20 | 74 61 62 6c 65 20 64 61 |r color |table da|
|00005040| 74 61 20 69 73 20 73 69 | 6d 70 6c 65 72 2e 20 20 |ta is si|mpler. |
|00005050| 52 65 61 64 20 74 68 65 | 20 64 61 74 61 20 69 6e |Read the| data in|
|00005060| 74 6f 20 61 72 72 61 79 | 73 2c 20 67 65 74 20 74 |to array|s, get t|
|00005070| 68 65 20 70 61 6c 65 74 | 74 65 20 66 6f 72 20 43 |he palet|te for C|
|00005080| 67 6d 4d 61 6b 65 72 27 | 73 20 77 69 6e 64 6f 77 |gmMaker'|s window|
|00005090| 20 28 47 65 74 50 61 6c | 65 74 74 65 28 6d 79 57 | (GetPal|ette(myW|
|000050a0| 69 6e 64 6f 77 29 29 2c | 20 73 65 74 20 74 68 65 |indow)),| set the|
|000050b0| 20 65 6e 74 72 69 65 73 | 20 74 6f 20 74 68 65 20 | entries| to the |
|000050c0| 70 72 6f 70 65 72 20 76 | 61 6c 75 65 73 20 61 6e |proper v|alues an|
|000050d0| 64 20 61 63 74 69 76 61 | 74 65 20 69 74 2e 0d 0d |d activa|te it...|
|000050e0| 76 6f 69 64 20 52 65 61 | 64 50 61 6c 65 74 74 65 |void Rea|dPalette|
|000050f0| 44 61 74 61 28 72 65 66 | 6e 75 6d 29 0d 73 68 6f |Data(ref|num).sho|
|00005100| 72 74 20 72 65 66 6e 75 | 6d 3b 0d 20 20 20 7b 0d |rt refnu|m;. {.|
|00005110| 20 20 20 73 68 6f 72 74 | 20 20 20 20 20 20 20 20 | short| |
|00005120| 20 20 20 20 65 72 72 6f | 72 2c 69 3b 0d 20 20 20 | erro|r,i;. |
|00005130| 6c 6f 6e 67 20 20 20 20 | 20 20 20 20 20 20 20 20 |long | |
|00005140| 6c 65 6e 3b 0d 20 20 20 | 52 47 42 43 6f 6c 6f 72 |len;. |RGBColor|
|00005150| 20 20 20 6d 79 45 6e 74 | 72 79 3b 0d 20 20 20 50 | myEnt|ry;. P|
|00005160| 61 6c 65 74 74 65 48 61 | 6e 64 6c 65 20 20 20 74 |aletteHa|ndle t|
|00005170| 68 69 73 50 61 6c 65 74 | 74 65 3b 20 20 20 0d 20 |hisPalet|te; . |
|00005180| 20 20 75 6e 73 69 67 6e | 65 64 20 63 68 61 72 20 | unsign|ed char |
|00005190| 20 20 72 5b 32 35 36 5d | 2c 67 5b 32 35 36 5d 2c | r[256]|,g[256],|
|000051a0| 62 5b 32 35 36 5d 3b 0d | 20 20 20 20 20 20 53 65 |b[256];.| Se|
|000051b0| 74 50 6f 72 74 28 6d 79 | 57 69 6e 64 6f 77 29 3b |tPort(my|Window);|
|000051c0| 0d 20 20 20 20 20 20 65 | 72 72 6f 72 3d 53 65 74 |. e|rror=Set|
|000051d0| 46 50 6f 73 28 72 65 66 | 6e 75 6d 2c 66 73 46 72 |FPos(ref|num,fsFr|
|000051e0| 6f 6d 53 74 61 72 74 2c | 30 29 3b 0d 20 20 20 20 |omStart,|0);. |
|000051f0| 20 20 6c 65 6e 3d 32 35 | 36 3b 0d 20 20 20 20 20 | len=25|6;. |
|00005200| 20 65 72 72 6f 72 3d 46 | 53 52 65 61 64 28 72 65 | error=F|SRead(re|
|00005210| 66 6e 75 6d 2c 26 6c 65 | 6e 2c 26 72 5b 30 5d 29 |fnum,&le|n,&r[0])|
|00005220| 3b 0d 20 20 20 20 20 20 | 6c 65 6e 3d 32 35 36 3b |;. |len=256;|
|00005230| 0d 20 20 20 20 20 20 65 | 72 72 6f 72 3d 46 53 52 |. e|rror=FSR|
|00005240| 65 61 64 28 72 65 66 6e | 75 6d 2c 26 6c 65 6e 2c |ead(refn|um,&len,|
|00005250| 26 67 5b 30 5d 29 3b 0d | 20 20 20 20 20 20 6c 65 |&g[0]);.| le|
|00005260| 6e 3d 32 35 36 3b 0d 20 | 20 20 20 20 20 65 72 72 |n=256;. | err|
|00005270| 6f 72 3d 46 53 52 65 61 | 64 28 72 65 66 6e 75 6d |or=FSRea|d(refnum|
|00005280| 2c 26 6c 65 6e 2c 26 62 | 5b 30 5d 29 3b 0d 20 20 |,&len,&b|[0]);. |
|00005290| 20 20 20 20 65 72 72 6f | 72 3d 46 53 43 6c 6f 73 | erro|r=FSClos|
|000052a0| 65 28 72 65 66 6e 75 6d | 29 3b 0d 20 20 20 20 20 |e(refnum|);. |
|000052b0| 20 72 5b 30 5d 3d 32 35 | 35 3b 67 5b 30 5d 3d 32 | r[0]=25|5;g[0]=2|
|000052c0| 35 35 3b 62 5b 30 5d 3d | 32 35 35 3b 0d 20 20 20 |55;b[0]=|255;. |
|000052d0| 20 20 20 72 5b 32 35 35 | 5d 3d 30 3b 67 5b 32 35 | r[255|]=0;g[25|
|000052e0| 35 5d 3d 30 3b 62 5b 32 | 35 35 5d 3d 30 3b 0d 0d |5]=0;b[2|55]=0;..|
|000052f0| 0d 20 20 20 20 20 20 69 | 66 20 28 6c 6f 63 61 6c |. i|f (local|
|00005300| 2e 63 6f 6c 6f 72 51 44 | 29 0d 20 20 20 20 20 20 |.colorQD|). |
|00005310| 7b 0d 20 20 20 20 20 20 | 20 20 20 74 68 69 73 50 |{. | thisP|
|00005320| 61 6c 65 74 74 65 3d 47 | 65 74 50 61 6c 65 74 74 |alette=G|etPalett|
|00005330| 65 28 6d 79 57 69 6e 64 | 6f 77 29 3b 0d 20 20 20 |e(myWind|ow);. |
|00005340| 20 20 20 20 20 20 66 6f | 72 20 28 69 3d 30 3b 20 | fo|r (i=0; |
|00005350| 69 3c 32 35 36 3b 20 2b | 2b 69 29 0d 20 20 20 20 |i<256; +|+i). |
|00005360| 20 20 20 20 20 7b 20 0d | 20 20 20 20 20 20 20 20 | { .| |
|00005370| 20 20 20 20 6d 79 45 6e | 74 72 79 2e 72 65 64 3d | myEn|try.red=|
|00005380| 72 5b 69 5d 2a 32 35 36 | 3b 0d 20 20 20 20 20 20 |r[i]*256|;. |
|00005390| 20 20 20 20 20 20 6d 79 | 45 6e 74 72 79 2e 67 72 | my|Entry.gr|
|000053a0| 65 65 6e 3d 67 5b 69 5d | 2a 32 35 36 3b 0d 20 20 |een=g[i]|*256;. |
|000053b0| 20 20 20 20 20 20 20 20 | 20 20 6d 79 45 6e 74 72 | | myEntr|
|000053c0| 79 2e 62 6c 75 65 3d 62 | 5b 69 5d 2a 32 35 36 3b |y.blue=b|[i]*256;|
|000053d0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 53 65 74 |. | Set|
|000053e0| 45 6e 74 72 79 43 6f 6c | 6f 72 28 74 68 69 73 50 |EntryCol|or(thisP|
|000053f0| 61 6c 65 74 74 65 2c 69 | 2c 26 6d 79 45 6e 74 72 |alette,i|,&myEntr|
|00005400| 79 29 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |y);. | |
|00005410| 7d 20 20 20 0d 20 20 20 | 20 20 20 20 20 20 41 63 |} . | Ac|
|00005420| 74 69 76 61 74 65 50 61 | 6c 65 74 74 65 28 6d 79 |tivatePa|lette(my|
|00005430| 57 69 6e 64 6f 77 29 3b | 0d 20 20 20 20 20 20 20 |Window);|. |
|00005440| 20 20 7d 0d 20 20 20 20 | 20 20 44 72 61 77 4d 65 | }. | DrawMe|
|00005450| 6e 75 42 61 72 28 29 3b | 0d 20 20 20 20 20 20 72 |nuBar();|. r|
|00005460| 65 74 75 72 6e 3b 0d 20 | 20 20 20 20 20 7d 0d 0d |eturn;. | }..|
|00005470| 54 6f 20 73 65 74 20 74 | 68 65 20 70 61 6c 65 74 |To set t|he palet|
|00005480| 74 65 20 74 6f 20 67 72 | 61 79 20 73 63 61 6c 65 |te to gr|ay scale|
|00005490| 2c 20 67 65 74 20 74 68 | 65 20 70 61 6c 65 74 74 |, get th|e palett|
|000054a0| 65 2c 20 73 65 74 20 74 | 68 65 20 65 6e 74 72 69 |e, set t|he entri|
|000054b0| 65 73 20 61 6e 64 20 61 | 63 74 69 76 61 74 65 20 |es and a|ctivate |
|000054c0| 69 74 2e 0d 0d 0d 76 6f | 69 64 20 53 65 74 47 72 |it....vo|id SetGr|
|000054d0| 65 79 50 61 6c 65 74 74 | 65 28 74 68 69 73 57 69 |eyPalett|e(thisWi|
|000054e0| 6e 64 6f 77 29 0d 57 69 | 6e 64 6f 77 50 74 72 20 |ndow).Wi|ndowPtr |
|000054f0| 20 20 74 68 69 73 57 69 | 6e 64 6f 77 3b 0d 20 20 | thisWi|ndow;. |
|00005500| 20 7b 0d 20 20 20 73 68 | 6f 72 74 20 69 3b 0d 20 | {. sh|ort i;. |
|00005510| 20 20 52 47 42 43 6f 6c | 6f 72 20 20 20 6d 79 45 | RGBCol|or myE|
|00005520| 6e 74 72 79 3b 0d 20 20 | 20 50 61 6c 65 74 74 65 |ntry;. | Palette|
|00005530| 48 61 6e 64 6c 65 20 20 | 20 74 68 69 73 50 61 6c |Handle | thisPal|
|00005540| 65 74 74 65 3b 20 20 20 | 0d 20 20 20 20 20 20 69 |ette; |. i|
|00005550| 66 20 28 6c 6f 63 61 6c | 2e 63 6f 6c 6f 72 51 44 |f (local|.colorQD|
|00005560| 29 0d 20 20 20 20 20 20 | 7b 0d 20 20 20 20 20 20 |). |{. |
|00005570| 20 20 20 74 68 69 73 50 | 61 6c 65 74 74 65 3d 47 | thisP|alette=G|
|00005580| 65 74 50 61 6c 65 74 74 | 65 28 74 68 69 73 57 69 |etPalett|e(thisWi|
|00005590| 6e 64 6f 77 29 3b 0d 20 | 20 20 20 20 20 20 20 20 |ndow);. | |
|000055a0| 66 6f 72 20 28 69 3d 32 | 35 35 3b 20 69 3e 3d 30 |for (i=2|55; i>=0|
|000055b0| 3b 20 2d 2d 69 29 0d 20 | 20 20 20 20 20 20 20 20 |; --i). | |
|000055c0| 7b 20 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 6d |{ . | m|
|000055d0| 79 45 6e 74 72 79 2e 72 | 65 64 3d 69 2a 32 35 36 |yEntry.r|ed=i*256|
|000055e0| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 6d 79 |;. | my|
|000055f0| 45 6e 74 72 79 2e 67 72 | 65 65 6e 3d 69 2a 32 35 |Entry.gr|een=i*25|
|00005600| 36 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 6d |6;. | m|
|00005610| 79 45 6e 74 72 79 2e 62 | 6c 75 65 3d 69 2a 32 35 |yEntry.b|lue=i*25|
|00005620| 36 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 53 |6;. | S|
|00005630| 65 74 45 6e 74 72 79 43 | 6f 6c 6f 72 28 74 68 69 |etEntryC|olor(thi|
|00005640| 73 50 61 6c 65 74 74 65 | 2c 32 35 35 2d 69 2c 26 |sPalette|,255-i,&|
|00005650| 6d 79 45 6e 74 72 79 29 | 3b 0d 20 20 20 20 20 20 |myEntry)|;. |
|00005660| 20 20 20 20 20 20 7d 20 | 20 20 0d 20 20 20 20 20 | } | . |
|00005670| 20 20 20 20 41 63 74 69 | 76 61 74 65 50 61 6c 65 | Acti|vatePale|
|00005680| 74 74 65 28 74 68 69 73 | 57 69 6e 64 6f 77 29 3b |tte(this|Window);|
|00005690| 0d 20 20 20 20 20 20 20 | 20 20 7d 0d 20 20 20 20 |. | }. |
|000056a0| 20 20 7d 0d 0d 54 68 65 | 72 65 20 65 6e 64 73 20 | }..The|re ends |
|000056b0| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 20 49 20 68 |the docu|ment I h|
|000056c0| 61 76 65 20 66 6f 6c 6b | 73 2e 00 00 00 00 00 00 |ave folk|s.......|
|000056d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005700| 00 00 01 00 00 00 01 3c | 00 00 00 3c 00 00 00 5a |.......<|...<...Z|
|00005710| 63 65 6c 00 00 00 00 00 | 07 00 37 00 48 01 80 08 |cel.....|..7.H...|
|00005720| 00 00 00 00 00 00 07 00 | 0f 00 27 00 2f 20 02 00 |........|..'./ ..|
|00005730| 08 43 47 4d 2e 64 6f 63 | 73 4d 02 00 00 00 54 45 |.CGM.doc|sM....TE|
|00005740| 58 54 51 45 44 31 00 00 | 00 00 00 00 00 00 00 00 |XTQED1..|........|
|00005750| 00 00 54 45 58 54 51 45 | 44 31 00 00 00 00 00 00 |..TEXTQE|D1......|
|00005760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005770| 00 00 a1 d9 fc 73 00 00 | 56 4a 00 00 01 96 05 00 |.....s..|VJ......|
|00005780| 61 00 4b 01 39 08 00 00 | 00 00 00 00 85 00 df 00 |a.K.9...|........|
|00005790| 86 00 f4 08 00 00 00 00 | 00 00 54 00 11 00 68 00 |........|..T...h.|
|000057a0| 5a 04 02 4e 6f 00 00 00 | 00 00 05 00 12 00 25 00 |Z..No...|......%.|
|000057b0| 32 20 02 00 02 00 00 02 | 90 00 21 00 00 00 00 00 |2 ......|..!.....|
|000057c0| 1d 00 75 00 2f 00 c0 08 | 00 00 00 00 00 00 1d 00 |..u./...|........|
|000057d0| e9 00 2f 01 38 08 00 00 | 00 00 00 00 2e 00 75 00 |../.8...|......u.|
|000057e0| 40 01 19 08 00 00 00 00 | 00 00 5a 01 d0 00 5b 01 |@.......|..Z...[.|
|000057f0| e4 08 00 00 00 00 00 00 | 1d 01 66 00 2f 01 a9 08 |........|..f./...|
|00005800| 00 00 00 2a 00 09 06 4d | 6f 6e 61 63 6f 00 00 00 |...*...M|onaco...|
|00005810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005830| 00 04 00 06 00 08 00 00 | 00 02 01 c2 00 00 01 00 |........|........|
|00005840| 00 00 01 3c 00 00 00 3c | 00 00 00 5a 00 08 b9 f8 |...<...<|...Z....|
|00005850| 06 9e 00 00 00 1c 00 5a | 00 02 45 46 4e 54 00 00 |.......Z|..EFNT..|
|00005860| 00 1a 45 54 41 42 00 00 | 00 26 45 51 45 44 00 00 |..ETAB..|.&EQED..|
|00005870| 00 32 03 eb ff ff 00 00 | 00 00 00 00 00 00 03 ec |.2......|........|
|00005880| ff ff 00 00 00 2e 00 00 | 00 00 03 eb ff ff 00 00 |........|........|
|00005890| 00 36 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.6......|........|
|000058a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+