home *** CD-ROM | disk | FTP | other *** search
Unknown | 1995-01-28 | 10.9 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| xdgMime
| image/x-tga
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0d 00 0a 12 f4 20 3e 20 | 4e 6f 57 69 6d 70 44 65 |..... > |NoWimpDe|
|00000010| 6d 6f 0d 00 14 04 0d 00 | 1e 48 f4 20 54 68 69 73 |mo......|.H. This|
|00000020| 20 70 72 6f 67 72 61 6d | 20 73 68 6f 77 73 20 68 | program| shows h|
|00000030| 6f 77 20 74 6f 20 64 69 | 73 70 6c 61 79 20 61 6e |ow to di|splay an|
|00000040| 64 20 70 72 69 6e 74 20 | 61 20 44 72 61 77 46 69 |d print |a DrawFi|
|00000050| 6c 65 20 66 72 6f 6d 20 | 61 20 6e 6f 6e 2d 0d 00 |le from |a non-..|
|00000060| 28 4b f4 20 57 69 6d 70 | 20 70 72 6f 67 72 61 6d |(K. Wimp| program|
|00000070| 2e 20 59 6f 75 20 6d 75 | 73 74 20 6c 6f 61 64 20 |. You mu|st load |
|00000080| 74 68 65 20 44 72 61 77 | 55 74 69 6c 73 41 20 6d |the Draw|UtilsA m|
|00000090| 6f 64 75 6c 65 20 62 65 | 66 6f 72 65 20 72 75 6e |odule be|fore run|
|000000a0| 6e 69 6e 67 20 74 68 69 | 73 0d 00 32 49 f4 20 70 |ning thi|s..2I. p|
|000000b0| 72 6f 67 72 61 6d 20 28 | 6f 74 68 65 72 77 69 73 |rogram (|otherwis|
|000000c0| 65 20 61 6e 20 22 53 57 | 49 20 6e 61 6d 65 20 6e |e an "SW|I name n|
|000000d0| 6f 74 20 6b 6e 6f 77 6e | 22 20 65 72 72 6f 72 20 |ot known|" error |
|000000e0| 77 69 6c 6c 20 6f 63 63 | 75 72 29 2e 20 41 6c 73 |will occ|ur). Als|
|000000f0| 6f 2c 0d 00 3c 48 f4 20 | 62 65 66 6f 72 65 20 70 |o,..<H. |before p|
|00000100| 72 69 6e 74 69 6e 67 2c | 20 79 6f 75 20 6d 75 73 |rinting,| you mus|
|00000110| 74 20 6c 6f 61 64 20 61 | 20 73 75 69 74 61 62 6c |t load a| suitabl|
|00000120| 65 20 52 49 53 43 20 4f | 53 20 33 20 70 72 69 6e |e RISC O|S 3 prin|
|00000130| 74 65 72 20 64 72 69 76 | 65 72 0d 00 46 4b f4 20 |ter driv|er..FK. |
|00000140| 28 6f 74 68 65 72 77 69 | 73 65 20 79 6f 75 20 67 |(otherwi|se you g|
|00000150| 65 74 20 61 20 73 69 6d | 69 6c 61 72 20 65 72 72 |et a sim|ilar err|
|00000160| 6f 72 29 20 20 61 6e 64 | 20 65 6e 73 75 72 65 20 |or) and| ensure |
|00000170| 69 74 20 69 73 20 73 65 | 74 20 75 70 20 66 6f 72 |it is se|t up for|
|00000180| 20 79 6f 75 72 0d 00 50 | 0e f4 20 70 72 69 6e 74 | your..P|.. print|
|00000190| 65 72 2e 0d 00 5a 04 0d | 00 64 46 f4 20 49 66 20 |er...Z..|.dF. If |
|000001a0| 74 68 65 20 70 72 69 6e | 74 65 72 20 69 73 20 6e |the prin|ter is n|
|000001b0| 6f 74 20 6f 6e 2d 6c 69 | 6e 65 2c 20 73 6f 6d 65 |ot on-li|ne, some|
|000001c0| 20 70 72 69 6e 74 65 72 | 20 64 72 69 76 65 72 73 | printer| drivers|
|000001d0| 20 77 69 6c 6c 20 71 75 | 69 63 6b 6c 79 0d 00 6e | will qu|ickly..n|
|000001e0| 4b f4 20 72 65 74 75 72 | 6e 20 61 6e 20 65 72 72 |K. retur|n an err|
|000001f0| 6f 72 2e 20 4f 74 68 65 | 72 73 20 64 6f 6e 27 74 |or. Othe|rs don't|
|00000200| 2c 20 61 6e 64 20 79 6f | 75 20 77 69 6c 6c 20 6e |, and yo|u will n|
|00000210| 65 65 64 20 74 6f 20 70 | 72 65 73 73 20 3c 45 73 |eed to p|ress <Es|
|00000220| 63 61 70 65 3e 20 74 6f | 0d 00 78 1b f4 20 63 61 |cape> to|..x.. ca|
|00000230| 6e 63 65 6c 20 74 68 65 | 20 70 72 69 6e 74 20 6a |ncel the| print j|
|00000240| 6f 62 2e 0d 00 82 04 0d | 00 8c 27 ee 20 85 20 f1 |ob......|..'. . .|
|00000250| 20 f6 24 3b 20 3a 20 f1 | 20 22 20 61 74 20 6c 69 | .$; : .| " at li|
|00000260| 6e 65 20 22 3b 20 c3 28 | 9e 29 20 3a 20 e0 0d 00 |ne "; .(|.) : ...|
|00000270| 96 04 0d 00 a0 0e de 20 | 62 6c 6b 25 20 31 32 38 |....... |blk% 128|
|00000280| 0d 00 aa 04 0d 00 b4 08 | eb 20 31 35 0d 00 be 04 |........|. 15....|
|00000290| 0d 00 c8 28 64 66 5f 6e | 61 6d 65 24 20 3d 20 22 |...(df_n|ame$ = "|
|000002a0| 41 44 46 53 3a 3a 44 65 | 6d 6f 30 31 2e 24 2e 44 |ADFS::De|mo01.$.D|
|000002b0| 72 61 77 44 65 6d 6f 22 | 0d 00 d2 04 0d 00 dc 14 |rawDemo"|........|
|000002c0| f4 20 4c 6f 61 64 20 74 | 68 65 20 66 69 6c 65 2e |. Load t|he file.|
|000002d0| 0d 00 e6 10 64 66 5f 73 | 69 7a 65 25 20 3d 20 30 |....df_s|ize% = 0|
|000002e0| 0d 00 f0 2c c8 99 20 22 | 4f 53 5f 46 69 6c 65 22 |...,.. "|OS_File"|
|000002f0| 2c 20 31 37 2c 20 64 66 | 5f 6e 61 6d 65 24 20 b8 |, 17, df|_name$ .|
|00000300| 2c 2c 2c 2c 64 66 5f 73 | 69 7a 65 25 0d 00 fa 1e |,,,,df_s|ize%....|
|00000310| de 20 64 66 5f 62 75 66 | 66 25 20 28 64 66 5f 73 |. df_buf|f% (df_s|
|00000320| 69 7a 65 25 20 2b 20 36 | 34 29 0d 01 04 2b c8 99 |ize% + 6|4)...+..|
|00000330| 20 22 4f 53 5f 46 69 6c | 65 22 2c 20 31 36 2c 20 | "OS_Fil|e", 16, |
|00000340| 64 66 5f 6e 61 6d 65 24 | 2c 20 64 66 5f 62 75 66 |df_name$|, df_buf|
|00000350| 66 25 2c 20 30 0d 01 0e | 04 0d 01 18 4b f4 20 44 |f%, 0...|....K. D|
|00000360| 65 66 69 6e 65 20 74 68 | 65 20 73 63 72 65 65 6e |efine th|e screen|
|00000370| 20 27 77 69 6e 64 6f 77 | 27 20 28 69 6e 20 6f 73 | 'window|' (in os|
|00000380| 20 75 6e 69 74 73 29 2e | 20 54 68 69 73 20 70 72 | units).| This pr|
|00000390| 6f 67 72 61 6d 20 77 69 | 6c 6c 20 6f 6e 6c 79 20 |ogram wi|ll only |
|000003a0| 77 6f 72 6b 0d 01 22 4a | f4 20 63 6f 72 72 65 63 |work.."J|. correc|
|000003b0| 74 6c 79 20 69 66 20 74 | 68 65 20 67 72 61 70 68 |tly if t|he graph|
|000003c0| 69 63 73 20 6f 72 69 67 | 69 6e 20 69 73 20 61 74 |ics orig|in is at|
|000003d0| 20 74 68 65 20 62 6f 74 | 74 6f 6d 20 6c 65 66 74 | the bot|tom left|
|000003e0| 20 63 6f 72 6e 65 72 20 | 6f 66 20 74 68 65 0d 01 | corner |of the..|
|000003f0| 2c 4a f4 20 73 63 72 65 | 65 6e 2c 20 73 6f 20 61 |,J. scre|en, so a|
|00000400| 6e 20 4f 52 49 47 49 4e | 20 30 2c 30 20 6f 72 20 |n ORIGIN| 0,0 or |
|00000410| 56 44 55 20 32 39 2c 30 | 3b 30 3b 20 73 74 61 74 |VDU 29,0|;0; stat|
|00000420| 65 6d 65 6e 74 20 6d 61 | 79 20 62 65 20 72 65 71 |ement ma|y be req|
|00000430| 75 69 72 65 64 20 74 6f | 0d 01 36 0f f4 20 72 65 |uired to|..6.. re|
|00000440| 73 65 74 20 69 74 2e 0d | 01 40 24 73 78 6d 69 6e |set it..|.@$sxmin|
|00000450| 25 20 3d 20 31 30 30 20 | 3a 20 73 78 6d 61 78 25 |% = 100 |: sxmax%|
|00000460| 20 3d 20 31 32 38 30 2d | 32 30 30 0d 01 4a 24 73 | = 1280-|200..J$s|
|00000470| 79 6d 69 6e 25 20 3d 20 | 31 30 30 20 3a 20 73 79 |ymin% = |100 : sy|
|00000480| 6d 61 78 25 20 3d 20 31 | 30 32 34 2d 32 30 30 0d |max% = 1|024-200.|
|00000490| 01 54 04 0d 01 5e 1b 69 | 78 6d 69 6e 25 20 3d 20 |.T...^.i|xmin% = |
|000004a0| 30 20 3a 20 69 78 6d 61 | 78 25 20 3d 20 30 0d 01 |0 : ixma|x% = 0..|
|000004b0| 68 1b 69 79 6d 69 6e 25 | 20 3d 20 30 20 3a 20 69 |h.iymin%| = 0 : i|
|000004c0| 79 6d 61 78 25 20 3d 20 | 30 0d 01 72 04 0d 01 7c |ymax% = |0..r...||
|000004d0| 2a f4 20 47 65 74 20 74 | 68 65 20 69 6d 61 67 65 |*. Get t|he image|
|000004e0| 20 73 69 7a 65 20 28 69 | 6e 20 6d 69 6c 6c 69 70 | size (i|n millip|
|000004f0| 6f 69 6e 74 73 29 2c 0d | 01 86 51 c8 99 20 22 44 |oints),.|..Q.. "D|
|00000500| 46 5f 47 65 74 49 6d 61 | 67 65 53 69 7a 65 22 2c |F_GetIma|geSize",|
|00000510| 20 33 2c 20 64 66 5f 62 | 75 66 66 25 2c 20 64 66 | 3, df_b|uff%, df|
|00000520| 5f 73 69 7a 65 25 20 b8 | 2c 20 69 78 6d 69 6e 25 |_size% .|, ixmin%|
|00000530| 2c 20 69 79 6d 69 6e 25 | 2c 20 69 78 6d 61 78 25 |, iymin%|, ixmax%|
|00000540| 2c 20 69 79 6d 61 78 25 | 0d 01 90 04 0d 01 9a 1e |, iymax%|........|
|00000550| f4 20 61 6e 64 20 63 6f | 6e 76 65 72 74 20 74 6f |. and co|nvert to|
|00000560| 20 6f 73 20 75 6e 69 74 | 73 2e 0d 01 a4 35 69 78 | os unit|s....5ix|
|00000570| 6d 69 6e 25 20 3d 20 69 | 78 6d 69 6e 25 20 2f 20 |min% = i|xmin% / |
|00000580| 34 30 30 20 3a 20 69 78 | 6d 61 78 25 20 3d 20 69 |400 : ix|max% = i|
|00000590| 78 6d 61 78 25 20 2f 20 | 34 30 30 20 2b 20 31 0d |xmax% / |400 + 1.|
|000005a0| 01 ae 35 69 79 6d 69 6e | 25 20 3d 20 69 79 6d 69 |..5iymin|% = iymi|
|000005b0| 6e 25 20 2f 20 34 30 30 | 20 3a 20 69 79 6d 61 78 |n% / 400| : iymax|
|000005c0| 25 20 3d 20 69 79 6d 61 | 78 25 20 2f 20 34 30 30 |% = iyma|x% / 400|
|000005d0| 20 2b 20 31 0d 01 b8 04 | 0d 01 c2 4a f4 20 69 78 | + 1....|...J. ix|
|000005e0| 6d 69 6e 25 2e 2e 2e 69 | 79 6d 61 78 25 20 6e 6f |min%...i|ymax% no|
|000005f0| 77 20 64 65 66 69 6e 65 | 20 61 20 72 65 63 74 61 |w define| a recta|
|00000600| 6e 67 75 6c 61 72 20 61 | 72 65 61 20 72 65 6c 61 |ngular a|rea rela|
|00000610| 74 69 76 65 20 74 6f 20 | 74 68 65 20 62 6f 74 74 |tive to |the bott|
|00000620| 6f 6d 0d 01 cc 4a f4 20 | 6c 65 66 74 20 63 6f 72 |om...J. |left cor|
|00000630| 6e 65 72 20 6f 66 20 74 | 68 65 20 28 70 61 70 65 |ner of t|he (pape|
|00000640| 72 29 20 70 61 67 65 20 | 77 68 69 63 68 20 65 78 |r) page |which ex|
|00000650| 61 63 74 6c 79 20 65 6e | 63 6c 6f 73 65 73 20 74 |actly en|closes t|
|00000660| 68 65 20 69 6d 61 67 65 | 2e 20 49 66 0d 01 d6 45 |he image|. If...E|
|00000670| f4 20 6f 6e 6c 79 20 70 | 61 72 74 20 6f 66 20 74 |. only p|art of t|
|00000680| 68 65 20 69 6d 61 67 65 | 20 69 73 20 74 6f 20 62 |he image| is to b|
|00000690| 65 20 64 69 73 70 6c 61 | 79 65 64 20 74 68 65 6e |e displa|yed then|
|000006a0| 20 73 69 6d 70 6c 79 20 | 73 65 74 20 74 68 65 73 | simply |set thes|
|000006b0| 65 0d 01 e0 2f f4 20 76 | 61 72 69 61 62 6c 65 73 |e.../. v|ariables|
|000006c0| 20 74 6f 20 64 65 66 69 | 6e 65 20 74 68 65 20 61 | to defi|ne the a|
|000006d0| 70 70 72 6f 70 72 69 61 | 74 65 20 61 72 65 61 2e |ppropria|te area.|
|000006e0| 0d 01 ea 28 f4 20 4e 6f | 74 65 20 3a 20 31 20 6f |...(. No|te : 1 o|
|000006f0| 73 20 75 6e 69 74 20 3d | 20 34 30 30 20 6d 69 6c |s unit =| 400 mil|
|00000700| 6c 69 70 6f 69 6e 74 73 | 0d 01 f4 24 f4 20 20 20 |lipoints|...$. |
|00000710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3d | | =|
|00000720| 20 30 2e 34 2f 37 32 20 | 69 6e 63 68 0d 01 fe 2f | 0.4/72 |inch.../|
|00000730| f4 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000740| 20 20 20 3d 20 30 2e 34 | 2f 37 32 2a 32 35 2e 34 | = 0.4|/72*25.4|
|00000750| 20 6d 69 6c 6c 69 6d 65 | 74 72 65 0d 02 08 04 0d | millime|tre.....|
|00000760| 02 12 47 f4 20 44 65 74 | 65 72 6d 69 6e 65 20 74 |..G. Det|ermine t|
|00000770| 68 65 20 7a 6f 6f 6d 20 | 66 61 63 74 6f 72 20 74 |he zoom |factor t|
|00000780| 6f 20 65 78 61 63 74 6c | 79 20 66 69 74 20 74 68 |o exactl|y fit th|
|00000790| 65 20 69 6d 61 67 65 20 | 69 6e 20 74 68 65 20 77 |e image |in the w|
|000007a0| 69 6e 64 6f 77 2c 0d 02 | 1c 35 69 77 69 64 25 20 |indow,..|.5iwid% |
|000007b0| 3d 20 69 78 6d 61 78 25 | 20 2d 20 69 78 6d 69 6e |= ixmax%| - ixmin|
|000007c0| 25 20 3a 20 69 68 67 74 | 25 20 3d 20 69 79 6d 61 |% : ihgt|% = iyma|
|000007d0| 78 25 20 2d 20 69 79 6d | 69 6e 25 0d 02 26 35 73 |x% - iym|in%..&5s|
|000007e0| 77 69 64 25 20 3d 20 73 | 78 6d 61 78 25 20 2d 20 |wid% = s|xmax% - |
|000007f0| 73 78 6d 69 6e 25 20 3a | 20 73 68 67 74 25 20 3d |sxmin% :| shgt% =|
|00000800| 20 73 79 6d 61 78 25 20 | 2d 20 73 79 6d 69 6e 25 | symax% |- symin%|
|00000810| 0d 02 30 04 0d 02 3a 18 | 7a 6f 6f 6d 20 3d 20 69 |..0...:.|zoom = i|
|00000820| 77 69 64 25 20 2f 20 73 | 77 69 64 25 0d 02 44 33 |wid% / s|wid%..D3|
|00000830| e7 20 28 69 68 67 74 25 | 20 2f 20 73 68 67 74 25 |. (ihgt%| / shgt%|
|00000840| 29 20 3e 20 7a 6f 6f 6d | 20 8c 20 7a 6f 6f 6d 20 |) > zoom| . zoom |
|00000850| 3d 20 69 68 67 74 25 20 | 2f 20 73 68 67 74 25 0d |= ihgt% |/ shgt%.|
|00000860| 02 4e 13 7a 6f 6f 6d 20 | 3d 20 31 20 2f 20 7a 6f |.N.zoom |= 1 / zo|
|00000870| 6f 6d 0d 02 58 04 0d 02 | 62 37 f4 20 61 6e 64 20 |om..X...|b7. and |
|00000880| 64 65 63 72 65 61 73 65 | 20 69 6d 61 67 65 20 73 |decrease| image s|
|00000890| 69 7a 65 20 73 6c 69 67 | 68 74 6c 79 20 28 6e 6f |ize slig|htly (no|
|000008a0| 74 20 65 73 73 65 6e 74 | 69 61 6c 29 2e 0d 02 6c |t essent|ial)...l|
|000008b0| 16 7a 6f 6f 6d 20 3d 20 | 7a 6f 6f 6d 20 2a 20 30 |.zoom = |zoom * 0|
|000008c0| 2e 39 35 0d 02 76 04 0d | 02 80 33 f4 20 5a 6f 6f |.95..v..|..3. Zoo|
|000008d0| 6d 20 66 61 63 74 6f 72 | 20 6d 75 73 74 20 62 65 |m factor| must be|
|000008e0| 20 69 6e 20 74 68 65 20 | 72 61 6e 67 65 20 31 2f | in the |range 1/|
|000008f0| 38 74 68 20 74 6f 20 38 | 78 2e 0d 02 8a 21 e7 20 |8th to 8|x....!. |
|00000900| 7a 6f 6f 6d 20 3c 20 30 | 2e 31 32 35 20 8c 20 7a |zoom < 0|.125 . z|
|00000910| 6f 6f 6d 20 3d 20 30 2e | 31 32 35 0d 02 94 21 e7 |oom = 0.|125...!.|
|00000920| 20 7a 6f 6f 6d 20 3e 20 | 38 2e 30 30 30 20 8c 20 | zoom > |8.000 . |
|00000930| 7a 6f 6f 6d 20 3d 20 38 | 2e 30 30 30 0d 02 9e 04 |zoom = 8|.000....|
|00000940| 0d 02 a8 3b f4 20 47 65 | 74 20 73 63 72 65 65 6e |...;. Ge|t screen|
|00000950| 20 63 6f 6f 72 64 69 6e | 61 74 65 73 20 6f 66 20 | coordin|ates of |
|00000960| 62 6f 74 74 6f 6d 20 6c | 65 66 74 20 63 6f 72 6e |bottom l|eft corn|
|00000970| 65 72 20 6f 66 20 70 61 | 67 65 2c 0d 02 b2 30 f4 |er of pa|ge,...0.|
|00000980| 20 28 75 73 65 64 20 74 | 6f 20 70 6f 73 69 74 69 | (used t|o positi|
|00000990| 6f 6e 20 74 68 65 20 69 | 6d 61 67 65 20 69 6e 20 |on the i|mage in |
|000009a0| 74 68 65 20 77 69 6e 64 | 6f 77 29 0d 02 bc 23 70 |the wind|ow)...#p|
|000009b0| 78 30 25 20 3d 20 28 73 | 78 6d 69 6e 25 20 2d 20 |x0% = (s|xmin% - |
|000009c0| 69 78 6d 69 6e 25 20 2a | 20 7a 6f 6f 6d 29 0d 02 |ixmin% *| zoom)..|
|000009d0| c6 23 70 79 30 25 20 3d | 20 28 73 79 6d 69 6e 25 |.#py0% =| (symin%|
|000009e0| 20 2d 20 69 79 6d 69 6e | 25 20 2a 20 7a 6f 6f 6d | - iymin|% * zoom|
|000009f0| 29 0d 02 d0 04 0d 02 da | 33 f4 20 61 6e 64 20 61 |).......|3. and a|
|00000a00| 64 6a 75 73 74 20 74 6f | 20 63 65 6e 74 72 65 20 |djust to| centre |
|00000a10| 74 68 65 20 69 6d 61 67 | 65 20 69 6e 20 74 68 65 |the imag|e in the|
|00000a20| 20 77 69 6e 64 6f 77 2e | 0d 02 e4 26 70 78 30 25 | window.|...&px0%|
|00000a30| 20 2b 3d 20 28 73 77 69 | 64 25 20 2d 20 69 77 69 | += (swi|d% - iwi|
|00000a40| 64 25 20 2a 20 7a 6f 6f | 6d 29 20 2f 20 32 0d 02 |d% * zoo|m) / 2..|
|00000a50| ee 26 70 79 30 25 20 2b | 3d 20 28 73 68 67 74 25 |.&py0% +|= (shgt%|
|00000a60| 20 2d 20 69 68 67 74 25 | 20 2a 20 7a 6f 6f 6d 29 | - ihgt%| * zoom)|
|00000a70| 20 2f 20 32 0d 02 f8 04 | 0d 03 02 24 f4 20 43 6c | / 2....|...$. Cl|
|00000a80| 65 61 72 20 74 68 65 20 | 62 61 63 6b 67 72 6f 75 |ear the |backgrou|
|00000a90| 6e 64 20 74 6f 20 77 68 | 69 74 65 2c 0d 03 0c 2f |nd to wh|ite,.../|
|00000aa0| c8 99 20 22 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |.. "Colo|urTrans_|
|00000ab0| 53 65 74 47 43 4f 4c 22 | 2c 20 26 46 46 46 46 46 |SetGCOL"|, &FFFFF|
|00000ac0| 46 30 30 2c 20 32 35 36 | 2c 20 30 0d 03 16 26 c8 |F00, 256|, 0...&.|
|00000ad0| 93 20 c8 90 20 73 78 6d | 69 6e 25 2c 20 73 79 6d |. .. sxm|in%, sym|
|00000ae0| 69 6e 25 2c 20 73 77 69 | 64 25 2c 20 73 68 67 74 |in%, swi|d%, shgt|
|00000af0| 25 0d 03 20 04 0d 03 2a | 1b f4 20 61 6e 64 20 61 |%.. ...*|.. and a|
|00000b00| 64 64 20 61 20 72 65 64 | 20 62 6f 72 64 65 72 2e |dd a red| border.|
|00000b10| 0d 03 34 2f c8 99 20 22 | 43 6f 6c 6f 75 72 54 72 |..4/.. "|ColourTr|
|00000b20| 61 6e 73 5f 53 65 74 47 | 43 4f 4c 22 2c 20 26 30 |ans_SetG|COL", &0|
|00000b30| 30 30 30 46 46 30 30 2c | 20 32 35 36 2c 20 30 0d |000FF00,| 256, 0.|
|00000b40| 03 3e 33 c8 93 20 73 78 | 6d 69 6e 25 20 2d 20 34 |.>3.. sx|min% - 4|
|00000b50| 2c 20 73 79 6d 69 6e 25 | 20 2d 20 34 2c 20 73 77 |, symin%| - 4, sw|
|00000b60| 69 64 25 20 2b 20 38 2c | 20 73 68 67 74 25 20 2b |id% + 8,| shgt% +|
|00000b70| 20 38 0d 03 48 04 0d 03 | 52 48 f4 20 44 65 66 69 | 8..H...|RH. Defi|
|00000b80| 6e 65 20 61 20 67 72 61 | 70 68 69 63 73 20 63 6c |ne a gra|phics cl|
|00000b90| 69 70 20 72 65 63 74 61 | 6e 67 6c 65 20 74 6f 20 |ip recta|ngle to |
|00000ba0| 65 6e 73 75 72 65 20 6e | 6f 74 68 69 6e 67 20 61 |ensure n|othing a|
|00000bb0| 70 70 65 61 72 73 20 6f | 75 74 73 69 64 65 0d 03 |ppears o|utside..|
|00000bc0| 5c 41 f4 20 74 68 65 20 | 73 63 72 65 65 6e 20 77 |\A. the |screen w|
|00000bd0| 69 6e 64 6f 77 20 28 6e | 6f 74 20 65 73 73 65 6e |indow (n|ot essen|
|00000be0| 74 69 61 6c 20 69 66 20 | 74 68 65 20 69 6d 61 67 |tial if |the imag|
|00000bf0| 65 20 69 73 20 73 63 61 | 6c 65 64 20 61 6e 64 0d |e is sca|led and.|
|00000c00| 03 66 38 f4 20 70 6f 73 | 69 74 69 6f 6e 65 64 20 |.f8. pos|itioned |
|00000c10| 73 6f 20 69 74 20 66 69 | 74 73 20 65 6e 74 69 72 |so it fi|ts entir|
|00000c20| 65 6c 79 20 77 69 74 68 | 69 6e 20 74 68 65 20 77 |ely with|in the w|
|00000c30| 69 6e 64 6f 77 29 2e 0d | 03 70 29 ef 20 32 34 2c |indow)..|.p). 24,|
|00000c40| 20 73 78 6d 69 6e 25 3b | 20 73 79 6d 69 6e 25 3b | sxmin%;| symin%;|
|00000c50| 20 73 78 6d 61 78 25 3b | 20 73 79 6d 61 78 25 3b | sxmax%;| symax%;|
|00000c60| 0d 03 7a 04 0d 03 84 22 | f4 20 44 65 66 69 6e 65 |..z...."|. Define|
|00000c70| 20 74 68 65 20 72 65 64 | 72 61 77 20 72 65 63 74 | the red|raw rect|
|00000c80| 61 6e 67 6c 65 2e 0d 03 | 8e 0f 62 6c 6b 25 21 30 |angle...|..blk%!0|
|00000c90| 20 20 3d 20 30 0d 03 98 | 12 62 6c 6b 25 21 34 20 | = 0...|.blk%!4 |
|00000ca0| 20 3d 20 70 78 30 25 0d | 03 a2 0f 62 6c 6b 25 21 | = px0%.|...blk%!|
|00000cb0| 38 20 20 3d 20 30 0d 03 | ac 0f 62 6c 6b 25 21 31 |8 = 0..|..blk%!1|
|00000cc0| 32 20 3d 20 30 0d 03 b6 | 12 62 6c 6b 25 21 31 36 |2 = 0...|.blk%!16|
|00000cd0| 20 3d 20 70 79 30 25 0d | 03 c0 0f 62 6c 6b 25 21 | = py0%.|...blk%!|
|00000ce0| 32 30 20 3d 20 30 0d 03 | ca 0f 62 6c 6b 25 21 32 |20 = 0..|..blk%!2|
|00000cf0| 34 20 3d 20 30 0d 03 d4 | 44 f4 20 54 68 65 20 6e |4 = 0...|D. The n|
|00000d00| 65 78 74 20 66 6f 75 72 | 20 65 6e 74 72 69 65 73 |ext four| entries|
|00000d10| 20 74 65 6c 6c 20 74 68 | 65 20 44 72 61 77 55 74 | tell th|e DrawUt|
|00000d20| 69 6c 73 41 20 6d 6f 64 | 75 6c 65 20 77 68 69 63 |ilsA mod|ule whic|
|00000d30| 68 20 6f 62 6a 65 63 74 | 73 0d 03 de 46 f4 20 6e |h object|s...F. n|
|00000d40| 65 65 64 20 74 6f 20 62 | 65 20 72 65 64 72 61 77 |eed to b|e redraw|
|00000d50| 6e 2e 20 53 69 6e 63 65 | 20 74 68 65 20 77 68 6f |n. Since| the who|
|00000d60| 6c 65 20 69 6d 61 67 65 | 20 69 73 20 74 6f 20 62 |le image| is to b|
|00000d70| 65 20 64 69 73 70 6c 61 | 79 65 64 20 61 6c 6c 0d |e displa|yed all.|
|00000d80| 03 e8 48 f4 20 6f 62 6a | 65 63 74 73 20 6d 75 73 |..H. obj|ects mus|
|00000d90| 74 20 62 65 20 72 65 64 | 72 61 77 6e 20 73 6f 20 |t be red|rawn so |
|00000da0| 74 68 65 20 69 78 6d 69 | 6e 25 2e 2e 2e 69 79 6d |the ixmi|n%...iym|
|00000db0| 61 78 25 20 76 61 6c 75 | 65 73 20 63 6f 75 6c 64 |ax% valu|es could|
|00000dc0| 20 28 65 2e 67 2e 29 0d | 03 f2 48 f4 20 73 69 6d | (e.g.).|..H. sim|
|00000dd0| 70 6c 79 20 62 65 20 30 | 2c 20 30 2c 20 31 30 30 |ply be 0|, 0, 100|
|00000de0| 30 30 2c 20 31 30 30 30 | 30 20 72 65 73 70 65 63 |00, 1000|0 respec|
|00000df0| 74 69 76 65 6c 79 20 28 | 77 68 69 63 68 20 77 6f |tively (|which wo|
|00000e00| 75 6c 64 20 63 6f 76 65 | 72 20 61 6e 20 41 30 0d |uld cove|r an A0.|
|00000e10| 03 fc 46 f4 20 70 61 67 | 65 29 2e 20 48 6f 77 65 |..F. pag|e). Howe|
|00000e20| 76 65 72 2c 20 69 66 20 | 6f 6e 6c 79 20 70 61 72 |ver, if |only par|
|00000e30| 74 20 6f 66 20 74 68 65 | 20 69 6d 61 67 65 20 69 |t of the| image i|
|00000e40| 73 20 74 6f 20 62 65 20 | 64 69 73 6c 61 79 65 64 |s to be |dislayed|
|00000e50| 20 74 68 65 6e 0d 04 06 | 4b f4 20 72 65 64 72 61 | then...|K. redra|
|00000e60| 77 69 6e 67 20 69 73 20 | 66 61 73 74 65 72 20 69 |wing is |faster i|
|00000e70| 66 20 6f 62 6a 65 63 74 | 73 20 74 68 61 74 20 61 |f object|s that a|
|00000e80| 72 65 20 6e 6f 74 20 76 | 69 73 69 62 6c 65 20 61 |re not v|isible a|
|00000e90| 72 65 20 6e 6f 74 20 72 | 65 6e 64 65 72 65 64 2e |re not r|endered.|
|00000ea0| 0d 04 10 49 f4 20 49 6e | 20 74 68 69 73 20 63 61 |...I. In| this ca|
|00000eb0| 73 65 2c 20 69 78 6d 69 | 6e 25 2e 2e 2e 69 79 6d |se, ixmi|n%...iym|
|00000ec0| 61 78 25 20 64 65 66 69 | 6e 65 20 61 20 72 65 63 |ax% defi|ne a rec|
|00000ed0| 74 61 6e 67 75 6c 61 72 | 20 61 72 65 61 20 72 65 |tangular| area re|
|00000ee0| 6c 61 74 69 76 65 20 74 | 6f 0d 04 1a 4a f4 20 74 |lative t|o...J. t|
|00000ef0| 68 65 20 62 6f 74 74 6f | 6d 20 6c 65 66 74 20 63 |he botto|m left c|
|00000f00| 6f 72 6e 65 72 20 6f 66 | 20 74 68 65 20 70 61 67 |orner of| the pag|
|00000f10| 65 20 61 6e 64 20 6f 62 | 6a 65 63 74 73 20 6f 75 |e and ob|jects ou|
|00000f20| 74 77 69 74 68 20 74 68 | 69 73 20 61 72 65 61 20 |twith th|is area |
|00000f30| 61 72 65 0d 04 24 4a f4 | 20 6e 6f 74 20 72 65 6e |are..$J.| not ren|
|00000f40| 64 65 72 65 64 2e 20 4f | 62 6a 65 63 74 73 20 70 |dered. O|bjects p|
|00000f50| 61 72 74 6c 79 20 6f 75 | 74 77 69 74 68 20 74 68 |artly ou|twith th|
|00000f60| 69 73 20 61 72 65 61 20 | 61 72 65 20 72 65 6e 64 |is area |are rend|
|00000f70| 65 72 65 64 20 69 6e 20 | 66 75 6c 6c 2c 0d 04 2e |ered in |full,...|
|00000f80| 49 f4 20 73 6f 20 74 68 | 65 20 67 72 61 70 68 69 |I. so th|e graphi|
|00000f90| 63 73 20 63 6c 69 70 20 | 72 65 63 74 61 6e 67 6c |cs clip |rectangl|
|00000fa0| 65 20 28 64 65 66 69 6e | 65 64 20 77 69 74 68 20 |e (defin|ed with |
|00000fb0| 56 44 55 20 32 34 29 20 | 69 73 20 72 65 71 75 69 |VDU 24) |is requi|
|00000fc0| 72 65 64 20 74 6f 0d 04 | 38 37 f4 20 65 6e 73 75 |red to..|87. ensu|
|00000fd0| 72 65 20 6e 6f 74 68 69 | 6e 67 20 61 70 70 65 61 |re nothi|ng appea|
|00000fe0| 72 73 20 6f 75 74 73 69 | 64 65 20 74 68 65 20 73 |rs outsi|de the s|
|00000ff0| 63 72 65 65 6e 20 77 69 | 6e 64 6f 77 2e 0d 04 42 |creen wi|ndow...B|
|00001000| 22 62 6c 6b 25 21 32 38 | 20 3d 20 70 78 30 25 20 |"blk%!28| = px0% |
|00001010| 2b 20 69 78 6d 69 6e 25 | 20 2a 20 7a 6f 6f 6d 0d |+ ixmin%| * zoom.|
|00001020| 04 4c 22 62 6c 6b 25 21 | 33 32 20 3d 20 70 79 30 |.L"blk%!|32 = py0|
|00001030| 25 20 2b 20 69 79 6d 69 | 6e 25 20 2a 20 7a 6f 6f |% + iymi|n% * zoo|
|00001040| 6d 0d 04 56 22 62 6c 6b | 25 21 33 36 20 3d 20 70 |m..V"blk|%!36 = p|
|00001050| 78 30 25 20 2b 20 69 78 | 6d 61 78 25 20 2a 20 7a |x0% + ix|max% * z|
|00001060| 6f 6f 6d 0d 04 60 22 62 | 6c 6b 25 21 34 30 20 3d |oom..`"b|lk%!40 =|
|00001070| 20 70 79 30 25 20 2b 20 | 69 79 6d 61 78 25 20 2a | py0% + |iymax% *|
|00001080| 20 7a 6f 6f 6d 0d 04 6a | 04 0d 04 74 1c f4 20 4e | zoom..j|...t.. N|
|00001090| 6f 77 20 64 69 73 70 6c | 61 79 20 74 68 65 20 69 |ow displ|ay the i|
|000010a0| 6d 61 67 65 2e 0d 04 7e | 3f c8 99 20 22 44 46 5f |mage...~|?.. "DF_|
|000010b0| 52 65 6e 64 65 72 22 2c | 20 31 2c 20 64 66 5f 62 |Render",| 1, df_b|
|000010c0| 75 66 66 25 2c 20 64 66 | 5f 73 69 7a 65 25 2c 2c |uff%, df|_size%,,|
|000010d0| 2c 28 7a 6f 6f 6d 20 2a | 20 31 30 30 30 29 2c 20 |,(zoom *| 1000), |
|000010e0| 62 6c 6b 25 0d 04 88 04 | 0d 04 92 4b f4 20 2d 2d |blk%....|...K. --|
|000010f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001110| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001120| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001130| 2d 2d 7c 0d 04 9c 04 0d | 04 a6 2c f1 20 8a 30 2c |--|.....|..,. .0,|
|00001140| 30 29 20 22 50 72 65 73 | 73 20 50 20 74 6f 20 70 |0) "Pres|s P to p|
|00001150| 72 69 6e 74 2c 20 58 20 | 74 6f 20 65 78 69 74 20 |rint, X |to exit |
|00001160| 20 22 3b 0d 04 b0 05 f5 | 0d 04 ba 10 20 20 ff 28 | ";.....|.... .(|
|00001170| 22 46 58 20 31 35 22 29 | 0d 04 c4 0c 20 20 6b 24 |"FX 15")|.... k$|
|00001180| 20 3d 20 be 0d 04 ce 19 | fd 20 6b 24 20 3d 20 22 | = .....|. k$ = "|
|00001190| 50 22 20 84 20 6b 24 20 | 3d 20 22 58 22 0d 04 d8 |P" . k$ |= "X"...|
|000011a0| 12 e7 20 6b 24 20 3d 20 | 22 58 22 20 8c 20 e0 0d |.. k$ = |"X" . ..|
|000011b0| 04 e2 04 0d 04 ec 2d f1 | 20 8a 30 2c 30 29 20 22 |......-.| .0,0) "|
|000011c0| 50 72 65 73 73 20 3c 45 | 73 63 3e 20 74 6f 20 63 |Press <E|sc> to c|
|000011d0| 61 6e 63 65 6c 20 70 72 | 69 6e 74 69 6e 67 22 27 |ancel pr|inting"'|
|000011e0| 0d 04 f6 04 0d 05 00 10 | 70 72 74 5f 6a 6f 62 25 |........|prt_job%|
|000011f0| 20 3d 20 30 0d 05 0a 32 | f4 20 70 72 74 5f 6a 6f | = 0...2|. prt_jo|
|00001200| 62 25 20 61 66 66 65 63 | 74 73 20 65 72 72 6f 72 |b% affec|ts error|
|00001210| 20 68 61 6e 64 6c 69 6e | 67 20 2d 20 73 65 65 20 | handlin|g - see |
|00001220| 62 65 6c 6f 77 2e 0d 05 | 14 18 ee 20 85 20 f2 70 |below...|... . .p|
|00001230| 72 69 6e 74 5f 65 72 72 | 6f 72 20 3a 20 e0 0d 05 |rint_err|or : ...|
|00001240| 1e 04 0d 05 28 40 f4 20 | 44 65 66 69 6e 65 20 6d |....(@. |Define m|
|00001250| 65 6d 6f 72 79 20 62 6c | 6f 63 6b 73 20 66 6f 72 |emory bl|ocks for|
|00001260| 20 64 69 61 6c 6f 67 75 | 65 20 77 69 74 68 20 74 | dialogu|e with t|
|00001270| 68 65 20 70 72 69 6e 74 | 65 72 20 64 72 69 76 65 |he print|er drive|
|00001280| 72 2e 0d 05 32 1a 70 72 | 74 5f 72 63 74 25 20 20 |r...2.pr|t_rct% |
|00001290| 20 3d 20 62 6c 6b 25 20 | 2b 20 34 38 0d 05 3c 1a | = blk% |+ 48..<.|
|000012a0| 70 72 74 5f 74 72 61 6e | 73 25 20 3d 20 62 6c 6b |prt_tran|s% = blk|
|000012b0| 25 20 2b 20 36 34 0d 05 | 46 1a 70 72 74 5f 70 6f |% + 64..|F.prt_po|
|000012c0| 73 25 20 20 20 3d 20 62 | 6c 6b 25 20 2b 20 38 30 |s% = b|lk% + 80|
|000012d0| 0d 05 50 1a 70 72 74 5f | 72 64 77 25 20 20 20 3d |..P.prt_|rdw% =|
|000012e0| 20 62 6c 6b 25 20 2b 20 | 38 38 0d 05 5a 04 0d 05 | blk% + |88..Z...|
|000012f0| 64 48 f4 20 47 65 74 20 | 74 68 65 20 70 61 67 65 |dH. Get |the page|
|00001300| 20 77 69 64 74 68 2c 20 | 68 65 69 67 68 74 20 61 | width, |height a|
|00001310| 6e 64 20 6c 65 66 74 2c | 20 62 6f 74 74 6f 6d 2c |nd left,| bottom,|
|00001320| 20 72 69 67 68 74 20 61 | 6e 64 20 74 6f 70 20 6d | right a|nd top m|
|00001330| 61 72 67 69 6e 73 0d 05 | 6e 49 f4 20 28 69 6e 20 |argins..|nI. (in |
|00001340| 6d 69 6c 6c 69 70 6f 69 | 6e 74 73 29 2e 20 4d 61 |millipoi|nts). Ma|
|00001350| 72 67 69 6e 73 20 61 72 | 65 20 6d 65 61 73 75 72 |rgins ar|e measur|
|00001360| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 6c 65 66 74 |ed from |the left|
|00001370| 20 6f 72 20 62 6f 74 74 | 6f 6d 20 65 64 67 65 0d | or bott|om edge.|
|00001380| 05 78 21 f4 20 6f 66 20 | 74 68 65 20 70 61 67 65 |.x!. of |the page|
|00001390| 20 61 73 20 61 70 70 72 | 6f 70 72 69 61 74 65 2e | as appr|opriate.|
|000013a0| 0d 05 82 45 c8 99 20 22 | 50 44 72 69 76 65 72 5f |...E.. "|PDriver_|
|000013b0| 50 61 67 65 53 69 7a 65 | 22 20 b8 20 2c 70 78 73 |PageSize|" . ,pxs|
|000013c0| 69 7a 65 25 2c 20 70 79 | 73 69 7a 65 25 2c 20 70 |ize%, py|size%, p|
|000013d0| 6c 6d 25 2c 20 70 62 6d | 25 2c 20 70 72 6d 25 2c |lm%, pbm|%, prm%,|
|000013e0| 20 70 74 6d 25 0d 05 8c | 04 0d 05 96 4a f4 20 47 | ptm%...|....J. G|
|000013f0| 65 74 20 74 68 65 20 69 | 6d 61 67 65 20 62 6f 75 |et the i|mage bou|
|00001400| 6e 64 69 6e 67 20 62 6f | 78 20 28 69 6e 20 6d 69 |nding bo|x (in mi|
|00001410| 6c 6c 69 70 6f 69 6e 74 | 73 29 2e 20 54 68 65 73 |llipoint|s). Thes|
|00001420| 65 20 76 61 6c 75 65 73 | 20 63 6f 75 6c 64 20 61 |e values| could a|
|00001430| 6c 73 6f 0d 05 a0 49 f4 | 20 62 65 20 73 65 74 20 |lso...I.| be set |
|00001440| 74 6f 20 69 64 65 6e 74 | 69 66 79 20 61 20 70 61 |to ident|ify a pa|
|00001450| 72 74 20 6f 66 20 74 68 | 65 20 69 6d 61 67 65 20 |rt of th|e image |
|00001460| 74 6f 20 62 65 20 70 72 | 69 6e 74 65 64 2c 20 6f |to be pr|inted, o|
|00001470| 72 20 74 68 65 79 20 63 | 6f 75 6c 64 0d 05 aa 47 |r they c|ould...G|
|00001480| f4 20 62 65 20 73 65 74 | 20 74 6f 20 30 2c 20 30 |. be set| to 0, 0|
|00001490| 2c 20 70 61 67 65 5f 77 | 69 64 74 68 2c 20 70 61 |, page_w|idth, pa|
|000014a0| 67 65 5f 68 65 69 67 68 | 74 20 72 65 73 70 65 63 |ge_heigh|t respec|
|000014b0| 74 69 76 65 6c 79 20 74 | 6f 20 70 72 69 6e 74 20 |tively t|o print |
|000014c0| 74 68 65 0d 05 b4 35 f4 | 20 77 68 6f 6c 65 20 69 |the...5.| whole i|
|000014d0| 6d 61 67 65 20 27 61 73 | 20 69 73 27 20 28 65 2e |mage 'as| is' (e.|
|000014e0| 67 2e 20 77 69 74 68 6f | 75 67 68 74 20 63 65 6e |g. witho|ught cen|
|000014f0| 74 65 72 69 6e 67 29 2e | 0d 05 be 51 c8 99 20 22 |tering).|...Q.. "|
|00001500| 44 46 5f 47 65 74 49 6d | 61 67 65 53 69 7a 65 22 |DF_GetIm|ageSize"|
|00001510| 2c 20 33 2c 20 64 66 5f | 62 75 66 66 25 2c 20 64 |, 3, df_|buff%, d|
|00001520| 66 5f 73 69 7a 65 25 20 | b8 20 2c 69 78 6d 69 6e |f_size% |. ,ixmin|
|00001530| 25 2c 20 69 79 6d 69 6e | 25 2c 20 69 78 6d 61 78 |%, iymin|%, ixmax|
|00001540| 25 2c 20 69 79 6d 61 78 | 25 0d 05 c8 04 0d 05 d2 |%, iymax|%.......|
|00001550| 44 f4 20 53 70 65 63 69 | 66 79 20 77 68 61 74 20 |D. Speci|fy what |
|00001560| 70 61 72 74 20 6f 66 20 | 74 68 65 20 69 6d 61 67 |part of |the imag|
|00001570| 65 20 69 73 20 74 6f 20 | 62 65 20 70 72 69 6e 74 |e is to |be print|
|00001580| 65 64 20 28 69 6e 20 6f | 73 20 75 6e 69 74 73 29 |ed (in o|s units)|
|00001590| 2e 0d 05 dc 1e 70 72 74 | 5f 72 63 74 25 21 30 20 |.....prt|_rct%!0 |
|000015a0| 20 3d 20 69 78 6d 69 6e | 25 20 2f 20 34 30 30 0d | = ixmin|% / 400.|
|000015b0| 05 e6 1e 70 72 74 5f 72 | 63 74 25 21 34 20 20 3d |...prt_r|ct%!4 =|
|000015c0| 20 69 79 6d 69 6e 25 20 | 2f 20 34 30 30 0d 05 f0 | iymin% |/ 400...|
|000015d0| 22 70 72 74 5f 72 63 74 | 25 21 38 20 20 3d 20 69 |"prt_rct|%!8 = i|
|000015e0| 78 6d 61 78 25 20 2f 20 | 34 30 30 20 2b 20 31 0d |xmax% / |400 + 1.|
|000015f0| 05 fa 22 70 72 74 5f 72 | 63 74 25 21 31 32 20 3d |.."prt_r|ct%!12 =|
|00001600| 20 69 79 6d 61 78 25 20 | 2f 20 34 30 30 20 2b 20 | iymax% |/ 400 + |
|00001610| 31 0d 06 04 04 0d 06 0e | 4a f4 20 44 65 74 65 72 |1.......|J. Deter|
|00001620| 6d 69 6e 65 20 69 66 20 | 74 68 65 20 69 6d 61 67 |mine if |the imag|
|00001630| 65 20 6e 65 65 64 73 20 | 74 6f 20 62 65 20 73 63 |e needs |to be sc|
|00001640| 61 6c 65 64 20 64 6f 77 | 6e 20 61 6e 64 2f 6f 72 |aled dow|n and/or|
|00001650| 20 72 6f 74 61 74 65 64 | 20 74 6f 20 66 69 74 0d | rotated| to fit.|
|00001660| 06 18 1f f4 20 77 69 74 | 68 69 6e 20 74 68 65 20 |.... wit|hin the |
|00001670| 70 72 69 6e 74 20 6d 61 | 72 67 69 6e 73 2e 0d 06 |print ma|rgins...|
|00001680| 22 35 69 77 69 64 25 20 | 3d 20 69 78 6d 61 78 25 |"5iwid% |= ixmax%|
|00001690| 20 2d 20 69 78 6d 69 6e | 25 20 3a 20 69 68 67 74 | - ixmin|% : ihgt|
|000016a0| 25 20 3d 20 69 79 6d 61 | 78 25 20 2d 20 69 79 6d |% = iyma|x% - iym|
|000016b0| 69 6e 25 0d 06 2c 1d 73 | 63 61 6c 65 20 3d 20 31 |in%..,.s|cale = 1|
|000016c0| 2e 30 20 3a 20 72 6f 74 | 61 74 65 25 20 3d 20 a3 |.0 : rot|ate% = .|
|000016d0| 0d 06 36 51 f2 69 6d 61 | 67 65 5f 61 75 74 6f 5f |..6Q.ima|ge_auto_|
|000016e0| 73 63 61 6c 65 28 28 70 | 72 6d 25 20 2d 20 70 6c |scale((p|rm% - pl|
|000016f0| 6d 25 29 2c 20 28 70 74 | 6d 25 20 2d 20 70 62 6d |m%), (pt|m% - pbm|
|00001700| 25 29 2c 20 69 77 69 64 | 25 2c 20 69 68 67 74 25 |%), iwid|%, ihgt%|
|00001710| 2c 20 73 63 61 6c 65 2c | 20 72 6f 74 61 74 65 25 |, scale,| rotate%|
|00001720| 29 0d 06 40 04 0d 06 4a | 4a f4 20 49 66 20 6e 65 |)..@...J|J. If ne|
|00001730| 63 65 73 73 61 72 79 20 | 74 68 65 20 69 6d 61 67 |cessary |the imag|
|00001740| 65 20 69 73 20 73 63 61 | 6c 65 64 20 64 6f 77 6e |e is sca|led down|
|00001750| 20 74 6f 20 66 69 74 20 | 62 65 74 77 65 65 6e 20 | to fit |between |
|00001760| 74 68 65 20 6d 61 72 67 | 69 6e 73 2e 20 49 66 0d |the marg|ins. If.|
|00001770| 06 54 4b f4 20 74 68 65 | 20 6d 61 72 67 69 6e 73 |.TK. the| margins|
|00001780| 20 61 72 65 20 6e 6f 74 | 20 73 65 74 20 63 6f 72 | are not| set cor|
|00001790| 72 65 63 74 6c 79 20 28 | 69 6e 20 74 68 65 20 21 |rectly (|in the !|
|000017a0| 50 72 69 6e 74 65 72 73 | 20 61 70 70 6c 69 63 61 |Printers| applica|
|000017b0| 74 69 6f 6e 29 20 70 61 | 72 74 0d 06 5e 43 f4 20 |tion) pa|rt..^C. |
|000017c0| 6f 66 20 74 68 65 20 69 | 6d 61 67 65 20 6d 61 79 |of the i|mage may|
|000017d0| 20 6e 6f 74 20 62 65 20 | 70 72 69 6e 74 65 64 20 | not be |printed |
|000017e0| 61 6c 6f 6e 67 20 6f 6e | 65 20 6f 72 20 6d 6f 72 |along on|e or mor|
|000017f0| 65 20 65 64 67 65 73 2e | 20 41 73 20 61 0d 06 68 |e edges.| As a..h|
|00001800| 47 f4 20 70 72 65 63 61 | 75 74 69 6f 6e 20 61 67 |G. preca|ution ag|
|00001810| 61 69 6e 73 74 20 74 68 | 69 73 2c 20 74 68 65 20 |ainst th|is, the |
|00001820| 73 63 61 6c 65 20 66 61 | 63 74 6f 72 20 63 61 6e |scale fa|ctor can|
|00001830| 20 62 65 20 72 65 64 75 | 63 65 64 20 61 20 6c 69 | be redu|ced a li|
|00001840| 74 74 6c 65 0d 06 72 0b | f4 20 6d 6f 72 65 2e 0d |ttle..r.|. more..|
|00001850| 06 7c 28 e7 20 73 63 61 | 6c 65 20 3c 20 31 2e 30 |.|(. sca|le < 1.0|
|00001860| 20 8c 20 73 63 61 6c 65 | 20 3d 20 73 63 61 6c 65 | . scale| = scale|
|00001870| 20 2a 20 30 2e 39 35 0d | 06 86 04 0d 06 90 27 f4 | * 0.95.|......'.|
|00001880| 20 47 65 74 20 74 68 65 | 20 69 6d 61 67 65 20 73 | Get the| image s|
|00001890| 69 7a 65 20 61 66 74 65 | 72 20 73 63 61 6c 69 6e |ize afte|r scalin|
|000018a0| 67 2e 0d 06 9a 1b 69 78 | 6d 69 6e 25 20 3d 20 69 |g.....ix|min% = i|
|000018b0| 78 6d 69 6e 25 20 2a 20 | 73 63 61 6c 65 0d 06 a4 |xmin% * |scale...|
|000018c0| 1b 69 78 6d 61 78 25 20 | 3d 20 69 78 6d 61 78 25 |.ixmax% |= ixmax%|
|000018d0| 20 2a 20 73 63 61 6c 65 | 0d 06 ae 1b 69 79 6d 69 | * scale|....iymi|
|000018e0| 6e 25 20 3d 20 69 79 6d | 69 6e 25 20 2a 20 73 63 |n% = iym|in% * sc|
|000018f0| 61 6c 65 0d 06 b8 1b 69 | 79 6d 61 78 25 20 3d 20 |ale....i|ymax% = |
|00001900| 69 79 6d 61 78 25 20 2a | 20 73 63 61 6c 65 0d 06 |iymax% *| scale..|
|00001910| c2 04 0d 06 cc 49 f4 20 | 53 70 65 63 69 66 79 20 |.....I. |Specify |
|00001920| 74 68 65 20 74 72 61 6e | 73 66 6f 72 6d 61 74 69 |the tran|sformati|
|00001930| 6f 6e 20 28 73 63 61 6c | 69 6e 67 20 61 6e 64 20 |on (scal|ing and |
|00001940| 72 6f 74 61 74 69 6f 6e | 29 20 74 6f 20 62 65 20 |rotation|) to be |
|00001950| 61 70 70 6c 69 65 64 20 | 61 6e 64 0d 06 d6 46 f4 |applied |and...F.|
|00001960| 20 74 68 65 20 70 6f 73 | 69 74 69 6f 6e 20 6f 66 | the pos|ition of|
|00001970| 20 74 68 65 20 69 6d 61 | 67 65 20 28 61 66 74 65 | the ima|ge (afte|
|00001980| 72 20 74 72 61 6e 73 66 | 6f 72 6d 61 74 69 6f 6e |r transf|ormation|
|00001990| 29 20 6f 6e 20 74 68 65 | 20 70 61 67 65 2e 20 49 |) on the| page. I|
|000019a0| 66 0d 06 e0 4a f4 20 69 | 78 6d 69 6e 25 2e 2e 2e |f...J. i|xmin%...|
|000019b0| 69 79 6d 61 78 25 20 65 | 78 61 63 74 6c 79 20 62 |iymax% e|xactly b|
|000019c0| 6f 75 6e 64 20 74 68 65 | 20 69 6d 61 67 65 20 28 |ound the| image (|
|000019d0| 6f 72 20 70 61 72 74 20 | 6f 66 20 69 74 29 20 61 |or part |of it) a|
|000019e0| 6e 64 20 6e 6f 20 73 68 | 69 66 74 0d 06 ea 4b f4 |nd no sh|ift...K.|
|000019f0| 20 69 73 20 61 70 70 6c | 69 65 64 20 74 68 65 6e | is appl|ied then|
|00001a00| 20 74 68 65 20 69 6d 61 | 67 65 20 77 69 6c 6c 20 | the ima|ge will |
|00001a10| 62 65 20 70 72 69 6e 74 | 65 64 20 77 69 74 68 20 |be print|ed with |
|00001a20| 69 74 73 20 62 6f 74 74 | 6f 6d 20 6c 65 66 74 20 |its bott|om left |
|00001a30| 63 6f 72 6e 65 72 0d 06 | f4 43 f4 20 61 74 20 74 |corner..|.C. at t|
|00001a40| 68 61 74 20 63 6f 72 6e | 65 72 20 6f 66 20 74 68 |hat corn|er of th|
|00001a50| 65 20 70 61 67 65 2e 20 | 49 66 20 72 6f 74 61 74 |e page. |If rotat|
|00001a60| 69 6f 6e 20 69 73 20 61 | 70 70 6c 69 65 64 20 28 |ion is a|pplied (|
|00001a70| 39 30 b0 20 61 6e 74 69 | 2d 0d 06 fe 48 f4 20 63 |90. anti|-...H. c|
|00001a80| 6c 6f 63 6b 77 69 73 65 | 20 61 62 6f 75 74 20 74 |lockwise| about t|
|00001a90| 68 65 20 62 6f 74 74 6f | 6d 20 6c 65 66 74 20 63 |he botto|m left c|
|00001aa0| 6f 72 6e 65 72 29 20 74 | 68 65 6e 20 74 68 65 20 |orner) t|hen the |
|00001ab0| 6e 65 77 20 79 20 63 6f | 6f 72 64 69 6e 61 74 65 |new y co|ordinate|
|00001ac0| 73 0d 07 08 46 f4 20 61 | 72 65 20 74 68 65 20 73 |s...F. a|re the s|
|00001ad0| 61 6d 65 20 61 73 20 74 | 68 65 20 70 72 65 76 69 |ame as t|he previ|
|00001ae0| 6f 75 73 20 78 20 76 61 | 6c 75 65 73 2c 20 62 75 |ous x va|lues, bu|
|00001af0| 74 20 61 20 6c 69 74 74 | 6c 65 20 6d 6f 72 65 20 |t a litt|le more |
|00001b00| 77 6f 72 6b 20 69 73 0d | 07 12 47 f4 20 6e 65 65 |work is.|..G. nee|
|00001b10| 64 65 64 20 74 6f 20 6f | 62 74 61 69 6e 20 74 68 |ded to o|btain th|
|00001b20| 65 20 6e 65 77 20 78 20 | 76 61 6c 75 65 73 20 73 |e new x |values s|
|00001b30| 69 6e 63 65 20 74 68 65 | 20 69 6d 61 67 65 20 68 |ince the| image h|
|00001b40| 61 73 20 65 66 66 65 63 | 74 69 76 65 6c 79 0d 07 |as effec|tively..|
|00001b50| 1c 49 f4 20 62 65 65 6e | 20 72 6f 74 61 74 65 64 |.I. been| rotated|
|00001b60| 20 6f 66 66 20 74 68 65 | 20 70 61 67 65 2e 20 4f | off the| page. O|
|00001b70| 6e 63 65 20 74 68 65 20 | 6e 65 77 20 78 20 76 61 |nce the |new x va|
|00001b80| 6c 75 65 73 20 68 61 76 | 65 20 62 65 65 6e 20 6f |lues hav|e been o|
|00001b90| 62 74 61 69 6e 65 64 0d | 07 26 44 f4 20 61 20 72 |btained.|.&D. a r|
|00001ba0| 69 67 68 74 77 61 72 64 | 20 73 68 69 66 74 20 65 |ightward| shift e|
|00001bb0| 71 75 61 6c 20 74 6f 20 | 74 68 65 20 69 6d 61 67 |qual to |the imag|
|00001bc0| 65 20 77 69 64 74 68 20 | 28 61 66 74 65 72 20 72 |e width |(after r|
|00001bd0| 6f 74 61 74 69 6f 6e 29 | 20 69 73 0d 07 30 31 f4 |otation)| is..01.|
|00001be0| 20 72 65 71 75 69 72 65 | 64 20 74 6f 20 67 65 74 | require|d to get|
|00001bf0| 20 74 68 65 20 69 6d 61 | 67 65 20 62 61 63 6b 20 | the ima|ge back |
|00001c00| 6f 6e 20 74 68 65 20 70 | 61 67 65 2e 0d 07 3a 0f |on the p|age...:.|
|00001c10| e7 20 72 6f 74 61 74 65 | 25 20 8c 0d 07 44 20 20 |. rotate|% ...D |
|00001c20| 20 f4 20 53 77 61 70 20 | 74 68 65 20 78 20 61 6e | . Swap |the x an|
|00001c30| 64 20 79 20 76 61 6c 75 | 65 73 2e 0d 07 4e 17 20 |d y valu|es...N. |
|00001c40| 20 c8 94 20 69 78 6d 69 | 6e 25 2c 20 69 79 6d 69 | .. ixmi|n%, iymi|
|00001c50| 6e 25 0d 07 58 17 20 20 | c8 94 20 69 78 6d 61 78 |n%..X. |.. ixmax|
|00001c60| 25 2c 20 69 79 6d 61 78 | 25 0d 07 62 21 20 20 f4 |%, iymax|%..b! .|
|00001c70| 20 4e 6f 77 20 63 6f 72 | 72 65 63 74 20 74 68 65 | Now cor|rect the|
|00001c80| 20 78 20 76 61 6c 75 65 | 73 2e 0d 07 6c 17 20 20 | x value|s...l. |
|00001c90| c8 94 20 69 78 6d 69 6e | 25 2c 20 69 78 6d 61 78 |.. ixmin|%, ixmax|
|00001ca0| 25 0d 07 76 1f 20 20 69 | 78 6d 69 6e 25 20 3d 20 |%..v. i|xmin% = |
|00001cb0| 70 78 73 69 7a 65 25 20 | 2d 20 69 78 6d 69 6e 25 |pxsize% |- ixmin%|
|00001cc0| 0d 07 80 1f 20 20 69 78 | 6d 61 78 25 20 3d 20 70 |.... ix|max% = p|
|00001cd0| 78 73 69 7a 65 25 20 2d | 20 69 78 6d 61 78 25 0d |xsize% -| ixmax%.|
|00001ce0| 07 8a 45 20 20 f4 20 53 | 68 69 66 74 20 72 65 71 |..E . S|hift req|
|00001cf0| 75 69 72 65 64 20 74 6f | 20 67 65 74 20 74 68 65 |uired to| get the|
|00001d00| 20 69 6d 61 67 65 20 62 | 61 63 6b 20 6f 6e 20 74 | image b|ack on t|
|00001d10| 68 65 20 70 61 67 65 20 | 28 74 68 65 20 74 6f 70 |he page |(the top|
|00001d20| 20 61 6e 64 0d 07 94 4a | 20 20 f4 20 62 6f 74 74 | and...J| . bott|
|00001d30| 6f 6d 20 65 64 67 65 73 | 20 6f 66 20 74 68 65 20 |om edges| of the |
|00001d40| 69 6d 61 67 65 20 28 62 | 65 66 6f 72 65 20 72 6f |image (b|efore ro|
|00001d50| 74 61 74 69 6f 6e 29 20 | 61 72 65 20 6e 6f 77 20 |tation) |are now |
|00001d60| 6c 6f 63 61 74 65 64 20 | 61 74 20 74 68 65 0d 07 |located |at the..|
|00001d70| 9e 41 20 20 f4 20 6c 65 | 66 74 20 65 64 67 65 20 |.A . le|ft edge |
|00001d80| 6f 66 20 74 68 65 20 70 | 61 70 65 72 20 61 6e 64 |of the p|aper and|
|00001d90| 20 73 6f 6d 65 77 68 65 | 72 65 20 74 6f 20 74 68 | somewhe|re to th|
|00001da0| 65 20 72 69 67 68 74 20 | 6f 66 20 74 68 69 73 0d |e right |of this.|
|00001db0| 07 a8 15 20 20 f4 20 72 | 65 73 70 65 63 74 69 76 |... . r|espectiv|
|00001dc0| 65 6c 79 2e 0d 07 b2 1f | 20 20 78 73 68 69 66 74 |ely.....| xshift|
|00001dd0| 25 20 3d 20 69 78 6d 61 | 78 25 20 2d 20 69 78 6d |% = ixma|x% - ixm|
|00001de0| 69 6e 25 0d 07 bc 42 20 | 20 f4 20 4e 6f 77 20 63 |in%...B | . Now c|
|00001df0| 65 6e 74 72 65 20 74 68 | 65 20 69 6d 61 67 65 20 |entre th|e image |
|00001e00| 28 62 79 20 69 6e 63 72 | 65 61 73 69 6e 67 20 74 |(by incr|easing t|
|00001e10| 68 65 20 78 73 68 69 66 | 74 20 62 79 20 68 61 6c |he xshif|t by hal|
|00001e20| 66 20 74 68 65 0d 07 c6 | 3f 20 20 f4 20 64 69 66 |f the...|? . dif|
|00001e30| 66 65 72 65 6e 63 65 20 | 62 65 74 77 65 65 6e 20 |ference |between |
|00001e40| 74 68 65 20 70 61 67 65 | 20 77 69 64 74 68 20 61 |the page| width a|
|00001e50| 6e 64 20 74 68 65 20 69 | 6d 61 67 65 20 77 69 64 |nd the i|mage wid|
|00001e60| 74 68 29 2e 0d 07 d0 32 | 20 20 78 73 68 69 66 74 |th)....2| xshift|
|00001e70| 25 20 2b 3d 20 28 70 78 | 73 69 7a 65 25 20 2d 20 |% += (px|size% - |
|00001e80| 28 69 78 6d 61 78 25 20 | 2d 20 69 78 6d 69 6e 25 |(ixmax% |- ixmin%|
|00001e90| 29 29 20 2f 20 32 0d 07 | da 2a 20 20 f4 20 53 70 |)) / 2..|.* . Sp|
|00001ea0| 65 63 69 66 79 20 74 68 | 65 20 74 72 61 6e 73 66 |ecify th|e transf|
|00001eb0| 6f 72 6d 61 74 69 6f 6e | 20 6d 61 74 72 69 78 2e |ormation| matrix.|
|00001ec0| 0d 07 e4 1c 20 20 70 72 | 74 5f 74 72 61 6e 73 25 |.... pr|t_trans%|
|00001ed0| 21 30 20 20 3d 20 20 20 | 20 20 20 30 0d 07 ee 24 |!0 = | 0...$|
|00001ee0| 20 20 70 72 74 5f 74 72 | 61 6e 73 25 21 34 20 20 | prt_tr|ans%!4 |
|00001ef0| 3d 20 20 36 35 35 33 36 | 20 2a 20 73 63 61 6c 65 |= 65536| * scale|
|00001f00| 0d 07 f8 24 20 20 70 72 | 74 5f 74 72 61 6e 73 25 |...$ pr|t_trans%|
|00001f10| 21 38 20 20 3d 20 2d 36 | 35 35 33 36 20 2a 20 73 |!8 = -6|5536 * s|
|00001f20| 63 61 6c 65 0d 08 02 1c | 20 20 70 72 74 5f 74 72 |cale....| prt_tr|
|00001f30| 61 6e 73 25 21 31 32 20 | 3d 20 20 20 20 20 20 30 |ans%!12 |= 0|
|00001f40| 0d 08 0c 05 cc 0d 08 16 | 49 20 20 f4 20 57 69 74 |........|I . Wit|
|00001f50| 68 6f 75 74 20 72 6f 74 | 61 74 69 6f 6e 2c 20 61 |hout rot|ation, a|
|00001f60| 6e 20 78 73 68 69 66 74 | 20 76 61 6c 75 65 20 6f |n xshift| value o|
|00001f70| 66 20 7a 65 72 6f 20 70 | 6f 73 69 74 69 6f 6e 73 |f zero p|ositions|
|00001f80| 20 74 68 65 20 6c 65 66 | 74 20 65 64 67 65 0d 08 | the lef|t edge..|
|00001f90| 20 48 20 20 f4 20 6f 66 | 20 74 68 65 20 69 6d 61 | H . of| the ima|
|00001fa0| 67 65 20 61 74 20 74 68 | 65 20 6c 65 66 74 20 65 |ge at th|e left e|
|00001fb0| 64 67 65 20 6f 66 20 74 | 68 65 20 70 61 67 65 2e |dge of t|he page.|
|00001fc0| 20 43 65 6e 74 65 72 69 | 6e 67 20 69 73 20 61 63 | Centeri|ng is ac|
|00001fd0| 68 69 65 76 65 64 0d 08 | 2a 1b 20 20 f4 20 61 73 |hieved..|*. . as|
|00001fe0| 20 64 65 73 63 72 69 62 | 65 64 20 61 62 6f 76 65 | describ|ed above|
|00001ff0| 2e 0d 08 34 31 20 20 78 | 73 68 69 66 74 25 20 3d |...41 x|shift% =|
|00002000| 20 28 70 78 73 69 7a 65 | 25 20 2d 20 28 69 78 6d | (pxsize|% - (ixm|
|00002010| 61 78 25 20 2d 20 69 78 | 6d 69 6e 25 29 29 20 2f |ax% - ix|min%)) /|
|00002020| 20 32 0d 08 3e 24 20 20 | 70 72 74 5f 74 72 61 6e | 2..>$ |prt_tran|
|00002030| 73 25 21 30 20 20 3d 20 | 20 36 35 35 33 36 20 2a |s%!0 = | 65536 *|
|00002040| 20 73 63 61 6c 65 0d 08 | 48 1c 20 20 70 72 74 5f | scale..|H. prt_|
|00002050| 74 72 61 6e 73 25 21 34 | 20 20 3d 20 20 20 20 20 |trans%!4| = |
|00002060| 20 30 0d 08 52 1c 20 20 | 70 72 74 5f 74 72 61 6e | 0..R. |prt_tran|
|00002070| 73 25 21 38 20 20 3d 20 | 20 20 20 20 20 30 0d 08 |s%!8 = | 0..|
|00002080| 5c 24 20 20 70 72 74 5f | 74 72 61 6e 73 25 21 31 |\$ prt_|trans%!1|
|00002090| 32 20 3d 20 20 36 35 35 | 33 36 20 2a 20 73 63 61 |2 = 655|36 * sca|
|000020a0| 6c 65 0d 08 66 05 cd 0d | 08 70 22 f4 20 43 65 6e |le..f...|.p". Cen|
|000020b0| 74 72 65 20 74 68 65 20 | 69 6d 61 67 65 20 76 65 |tre the |image ve|
|000020c0| 72 74 69 63 61 6c 6c 79 | 2e 0d 08 7a 2f 79 73 68 |rtically|...z/ysh|
|000020d0| 69 66 74 25 20 3d 20 28 | 70 79 73 69 7a 65 25 20 |ift% = (|pysize% |
|000020e0| 2d 20 28 69 79 6d 61 78 | 25 20 2d 20 69 79 6d 69 |- (iymax|% - iymi|
|000020f0| 6e 25 29 29 20 2f 20 32 | 0d 08 84 18 70 72 74 5f |n%)) / 2|....prt_|
|00002100| 70 6f 73 25 21 30 20 3d | 20 78 73 68 69 66 74 25 |pos%!0 =| xshift%|
|00002110| 0d 08 8e 18 70 72 74 5f | 70 6f 73 25 21 34 20 3d |....prt_|pos%!4 =|
|00002120| 20 79 73 68 69 66 74 25 | 0d 08 98 04 0d 08 a2 47 | yshift%|.......G|
|00002130| f4 20 53 74 61 72 74 20 | 74 68 65 20 64 69 61 6c |. Start |the dial|
|00002140| 6f 67 75 65 20 77 69 74 | 68 20 74 68 65 20 70 72 |ogue wit|h the pr|
|00002150| 69 6e 74 65 72 20 64 72 | 69 76 65 72 2e 20 50 72 |inter dr|iver. Pr|
|00002160| 69 6e 74 69 6e 67 20 69 | 73 20 70 65 72 66 6f 72 |inting i|s perfor|
|00002170| 6d 65 64 0d 08 ac 41 f4 | 20 75 73 69 6e 67 20 74 |med...A.| using t|
|00002180| 68 65 20 73 61 6d 65 20 | 63 61 6c 6c 73 20 28 65 |he same |calls (e|
|00002190| 2e 67 2e 20 74 6f 20 74 | 68 65 20 66 6f 6e 74 20 |.g. to t|he font |
|000021a0| 6d 61 6e 61 67 65 72 29 | 20 77 68 69 63 68 20 77 |manager)| which w|
|000021b0| 6f 75 6c 64 0d 08 b6 4b | f4 20 6f 72 64 69 6e 61 |ould...K|. ordina|
|000021c0| 72 69 6c 79 20 75 70 64 | 61 74 65 20 74 68 65 20 |rily upd|ate the |
|000021d0| 73 63 72 65 65 6e 20 64 | 69 73 70 6c 61 79 2c 20 |screen d|isplay, |
|000021e0| 62 75 74 20 74 68 65 73 | 65 20 63 61 6c 6c 73 20 |but thes|e calls |
|000021f0| 61 72 65 20 69 6e 74 65 | 72 63 65 70 74 65 64 0d |are inte|rcepted.|
|00002200| 08 c0 45 f4 20 62 79 20 | 74 68 65 20 70 72 69 6e |..E. by |the prin|
|00002210| 74 65 72 20 64 72 69 76 | 65 72 2e 20 49 66 20 61 |ter driv|er. If a|
|00002220| 6e 79 20 65 72 72 6f 72 | 20 6f 63 63 75 72 73 20 |ny error| occurs |
|00002230| 77 68 69 6c 65 20 70 72 | 69 6e 74 69 6e 67 20 69 |while pr|inting i|
|00002240| 73 20 69 6e 0d 08 ca 46 | f4 20 70 72 6f 67 72 65 |s in...F|. progre|
|00002250| 73 73 20 28 77 68 69 6c | 65 20 70 72 74 5f 6a 6f |ss (whil|e prt_jo|
|00002260| 62 25 20 3c 3e 20 30 29 | 2c 20 69 74 20 69 73 20 |b% <> 0)|, it is |
|00002270| 69 6d 70 6f 72 74 61 6e | 74 20 74 6f 20 63 61 6c |importan|t to cal|
|00002280| 6c 20 50 44 72 69 76 65 | 72 5f 0d 08 d4 4b f4 20 |l PDrive|r_...K. |
|00002290| 41 62 6f 72 74 4a 6f 62 | 20 69 6d 6d 65 64 69 61 |AbortJob| immedia|
|000022a0| 74 65 6c 79 20 74 6f 20 | 72 65 73 74 6f 72 65 20 |tely to |restore |
|000022b0| 6e 6f 72 6d 61 6c 20 73 | 63 72 65 65 6e 20 64 69 |normal s|creen di|
|000022c0| 73 70 6c 61 79 20 6f 70 | 65 72 61 74 69 6f 6e 73 |splay op|erations|
|000022d0| 2e 20 53 65 65 0d 08 de | 3d f4 20 74 68 65 20 65 |. See...|=. the e|
|000022e0| 72 72 6f 72 20 68 61 6e | 64 6c 69 6e 67 20 70 72 |rror han|dling pr|
|000022f0| 6f 63 65 64 75 72 65 20 | 61 74 20 74 68 65 20 65 |ocedure |at the e|
|00002300| 6e 64 20 6f 66 20 74 68 | 65 20 70 72 6f 67 72 61 |nd of th|e progra|
|00002310| 6d 2e 0d 08 e8 1c 70 72 | 74 5f 6a 6f 62 25 20 3d |m.....pr|t_job% =|
|00002320| 20 ae 28 22 70 72 69 6e | 74 65 72 3a 22 29 0d 08 | .("prin|ter:")..|
|00002330| f2 32 c8 99 20 22 50 44 | 72 69 76 65 72 5f 53 65 |.2.. "PD|river_Se|
|00002340| 6c 65 63 74 4a 6f 62 22 | 2c 20 70 72 74 5f 6a 6f |lectJob"|, prt_jo|
|00002350| 62 25 2c 20 22 4e 6f 57 | 69 6d 70 44 65 6d 6f 22 |b%, "NoW|impDemo"|
|00002360| 0d 08 fc 4a f4 20 57 69 | 74 68 20 61 20 70 6f 73 |...J. Wi|th a pos|
|00002370| 74 73 63 72 69 70 74 20 | 70 72 69 6e 74 65 72 2c |tscript |printer,|
|00002380| 20 66 6f 6e 74 20 64 6f | 77 6e 6c 6f 61 64 69 6e | font do|wnloadin|
|00002390| 67 20 77 6f 75 6c 64 20 | 62 65 20 70 65 72 66 6f |g would |be perfo|
|000023a0| 72 6d 65 64 20 68 65 72 | 65 2e 0d 09 06 42 f4 20 |rmed her|e....B. |
|000023b0| 53 65 65 20 50 52 4f 43 | 64 6f 77 6e 6c 6f 61 64 |See PROC|download|
|000023c0| 5f 66 6f 6e 74 73 20 69 | 6e 20 74 68 65 20 21 52 |_fonts i|n the !R|
|000023d0| 75 6e 49 6d 61 67 65 20 | 70 72 6f 67 72 61 6d 20 |unImage |program |
|000023e0| 66 6f 72 20 64 65 74 61 | 69 6c 73 2e 0d 09 10 2f |for deta|ils..../|
|000023f0| f4 20 43 6c 65 61 72 20 | 74 68 65 20 44 72 61 77 |. Clear |the Draw|
|00002400| 55 74 69 6c 73 41 20 6d | 6f 64 75 6c 65 20 72 65 |UtilsA m|odule re|
|00002410| 64 72 61 77 20 62 6c 6f | 63 6b 2e 0d 09 1a 15 e3 |draw blo|ck......|
|00002420| 20 69 25 20 3d 20 30 20 | b8 20 32 34 20 88 20 34 | i% = 0 |. 24 . 4|
|00002430| 0d 09 24 11 20 20 62 6c | 6b 25 21 69 25 20 3d 20 |..$. bl|k%!i% = |
|00002440| 30 0d 09 2e 05 ed 0d 09 | 38 43 f4 20 54 65 6c 6c |0.......|8C. Tell|
|00002450| 20 74 68 65 20 70 72 69 | 6e 74 65 72 20 64 72 69 | the pri|nter dri|
|00002460| 76 65 72 20 77 68 61 74 | 20 69 73 20 74 6f 20 62 |ver what| is to b|
|00002470| 65 20 70 72 69 6e 74 65 | 64 20 28 70 72 74 5f 72 |e printe|d (prt_r|
|00002480| 63 74 25 29 2c 20 74 68 | 65 0d 09 42 4b f4 20 74 |ct%), th|e..BK. t|
|00002490| 72 61 6e 73 66 6f 72 6d | 61 74 69 6f 6e 20 28 70 |ransform|ation (p|
|000024a0| 72 74 5f 74 72 61 6e 73 | 25 29 2c 20 74 68 65 20 |rt_trans|%), the |
|000024b0| 64 65 73 74 69 6e 61 74 | 69 6f 6e 20 6c 6f 63 61 |destinat|ion loca|
|000024c0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 69 6d 61 67 |tion of |the imag|
|000024d0| 65 20 6f 6e 0d 09 4c 41 | f4 20 74 68 65 20 70 61 |e on..LA|. the pa|
|000024e0| 67 65 20 28 70 72 74 5f | 70 6f 73 25 29 20 61 6e |ge (prt_|pos%) an|
|000024f0| 64 20 74 68 65 20 62 61 | 63 6b 67 72 6f 75 6e 64 |d the ba|ckground|
|00002500| 20 63 6f 6c 6f 75 72 20 | 28 68 65 72 65 20 77 68 | colour |(here wh|
|00002510| 69 74 65 20 3d 0d 09 56 | 2d f4 20 26 46 46 46 46 |ite =..V|-. &FFFF|
|00002520| 46 46 30 30 20 69 6e 20 | 72 67 62 20 2d 20 26 42 |FF00 in |rgb - &B|
|00002530| 42 47 47 52 52 30 30 20 | 2d 20 66 6f 72 6d 61 74 |BGGRR00 |- format|
|00002540| 29 2e 0d 09 60 4c c8 99 | 20 22 50 44 72 69 76 65 |)...`L..| "PDrive|
|00002550| 72 5f 47 69 76 65 52 65 | 63 74 61 6e 67 6c 65 22 |r_GiveRe|ctangle"|
|00002560| 2c 20 30 2c 20 70 72 74 | 5f 72 63 74 25 2c 20 70 |, 0, prt|_rct%, p|
|00002570| 72 74 5f 74 72 61 6e 73 | 25 2c 20 70 72 74 5f 70 |rt_trans|%, prt_p|
|00002580| 6f 73 25 2c 20 26 46 46 | 46 46 46 46 30 30 0d 09 |os%, &FF|FFFF00..|
|00002590| 6a 4b f4 20 50 72 69 6e | 74 69 6e 67 20 69 73 20 |jK. Prin|ting is |
|000025a0| 73 69 6d 69 6c 61 72 20 | 74 6f 20 72 65 64 72 61 |similar |to redra|
|000025b0| 77 69 6e 67 20 61 20 64 | 65 73 6b 74 6f 70 20 77 |wing a d|esktop w|
|000025c0| 69 6e 64 6f 77 20 69 6e | 20 74 68 61 74 20 74 68 |indow in| that th|
|000025d0| 65 20 70 72 69 6e 74 65 | 72 0d 09 74 4b f4 20 64 |e printe|r..tK. d|
|000025e0| 72 69 76 65 72 20 72 65 | 74 75 72 6e 73 20 6f 6e |river re|turns on|
|000025f0| 65 20 6f 72 20 6d 6f 72 | 65 20 72 65 63 74 61 6e |e or mor|e rectan|
|00002600| 67 75 6c 61 72 20 61 72 | 65 61 73 20 77 68 69 63 |gular ar|eas whic|
|00002610| 68 20 6e 65 65 64 20 74 | 6f 20 62 65 20 27 66 69 |h need t|o be 'fi|
|00002620| 6c 6c 65 64 0d 09 7e 4a | f4 20 69 6e 27 20 62 79 |lled..~J|. in' by|
|00002630| 20 74 68 65 20 72 65 6e | 64 65 72 69 6e 67 20 72 | the ren|dering r|
|00002640| 6f 75 74 69 6e 65 2e 20 | 46 6f 72 20 65 78 61 6d |outine. |For exam|
|00002650| 70 6c 65 2c 20 77 69 74 | 68 20 61 20 64 6f 74 2d |ple, wit|h a dot-|
|00002660| 6d 61 74 72 69 78 20 70 | 72 69 6e 74 65 72 0d 09 |matrix p|rinter..|
|00002670| 88 47 f4 20 74 68 65 20 | 69 6d 61 67 65 20 77 6f |.G. the |image wo|
|00002680| 75 6c 64 20 62 65 20 70 | 72 69 6e 74 65 64 20 61 |uld be p|rinted a|
|00002690| 73 20 61 20 73 65 72 69 | 65 73 20 6f 66 20 68 6f |s a seri|es of ho|
|000026a0| 72 69 7a 6f 6e 74 61 6c | 20 73 74 72 69 70 73 2e |rizontal| strips.|
|000026b0| 20 54 68 69 73 0d 09 92 | 48 f4 20 63 61 6c 6c 20 | This...|H. call |
|000026c0| 67 65 74 73 20 74 68 65 | 20 63 6f 6f 72 64 69 6e |gets the| coordin|
|000026d0| 61 74 65 73 20 6f 66 20 | 74 68 65 20 66 69 72 73 |ates of |the firs|
|000026e0| 74 20 61 72 65 61 20 69 | 6e 20 74 68 65 20 66 6f |t area i|n the fo|
|000026f0| 75 72 20 77 6f 72 64 20 | 62 6c 6f 63 6b 0d 09 9c |ur word |block...|
|00002700| 0f f4 20 70 72 74 5f 72 | 64 77 25 2e 0d 09 a6 34 |.. prt_r|dw%....4|
|00002710| c8 99 20 22 50 44 72 69 | 76 65 72 5f 44 72 61 77 |.. "PDri|ver_Draw|
|00002720| 50 61 67 65 22 2c 20 31 | 2c 20 70 72 74 5f 72 64 |Page", 1|, prt_rd|
|00002730| 77 25 2c 20 30 2c 20 30 | 20 b8 20 6d 6f 72 65 25 |w%, 0, 0| . more%|
|00002740| 0d 09 b0 0c c8 95 20 6d | 6f 72 65 25 0d 09 ba 45 |...... m|ore%...E|
|00002750| 20 20 f4 20 43 6f 70 79 | 20 74 68 65 73 65 20 63 | . Copy| these c|
|00002760| 6f 6f 72 64 69 6e 61 74 | 65 73 20 74 6f 20 74 68 |oordinat|es to th|
|00002770| 65 20 44 72 61 77 55 74 | 69 6c 73 41 20 6d 6f 64 |e DrawUt|ilsA mod|
|00002780| 75 6c 65 20 72 65 64 72 | 61 77 20 62 6c 6f 63 6b |ule redr|aw block|
|00002790| 2e 0d 09 c4 17 20 20 e3 | 20 69 25 20 3d 20 30 20 |..... .| i% = 0 |
|000027a0| b8 20 31 32 20 88 20 34 | 0d 09 ce 24 20 20 20 20 |. 12 . 4|...$ |
|000027b0| 62 6c 6b 25 21 28 32 38 | 20 2b 20 69 25 29 20 3d |blk%!(28| + i%) =|
|000027c0| 20 70 72 74 5f 72 64 77 | 25 21 69 25 0d 09 d8 07 | prt_rdw|%!i%....|
|000027d0| 20 20 ed 0d 09 e2 31 20 | 20 f4 20 52 65 6e 64 65 | ....1 | . Rende|
|000027e0| 72 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |r the ap|propriat|
|000027f0| 65 20 70 61 72 74 20 6f | 66 20 74 68 65 20 69 6d |e part o|f the im|
|00002800| 61 67 65 2e 0d 09 ec 38 | 20 20 c8 99 20 22 44 46 |age....8| .. "DF|
|00002810| 5f 52 65 6e 64 65 72 22 | 2c 20 31 2c 20 64 66 5f |_Render"|, 1, df_|
|00002820| 62 75 66 66 25 2c 20 64 | 66 5f 73 69 7a 65 25 2c |buff%, d|f_size%,|
|00002830| 2c 2c 31 30 30 30 2c 20 | 62 6c 6b 25 0d 09 f6 44 |,,1000, |blk%...D|
|00002840| 20 20 f4 20 47 65 74 20 | 74 68 65 20 63 6f 6f 72 | . Get |the coor|
|00002850| 64 69 6e 61 74 65 73 20 | 6f 66 20 74 68 65 20 6e |dinates |of the n|
|00002860| 65 78 74 20 61 72 65 61 | 20 74 6f 20 62 65 20 70 |ext area| to be p|
|00002870| 72 69 6e 74 65 64 20 28 | 69 66 20 61 6e 79 29 2e |rinted (|if any).|
|00002880| 0d 0a 00 31 20 20 c8 99 | 20 22 50 44 72 69 76 65 |...1 ..| "PDrive|
|00002890| 72 5f 47 65 74 52 65 63 | 74 61 6e 67 6c 65 22 2c |r_GetRec|tangle",|
|000028a0| 2c 70 72 74 5f 72 64 77 | 25 20 b8 20 6d 6f 72 65 |,prt_rdw|% . more|
|000028b0| 25 0d 0a 0a 05 ce 0d 0a | 14 2f f4 20 45 6e 64 20 |%.......|./. End |
|000028c0| 74 68 65 20 64 69 61 6c | 6f 67 75 65 20 77 69 74 |the dial|ogue wit|
|000028d0| 68 20 74 68 65 20 70 72 | 69 6e 74 65 72 20 64 72 |h the pr|inter dr|
|000028e0| 69 76 65 72 2e 0d 0a 1e | 21 c8 99 20 22 50 44 72 |iver....|!.. "PDr|
|000028f0| 69 76 65 72 5f 45 6e 64 | 4a 6f 62 22 2c 20 70 72 |iver_End|Job", pr|
|00002900| 74 5f 6a 6f 62 25 0d 0a | 28 0f d9 20 23 70 72 74 |t_job%..|(.. #prt|
|00002910| 5f 6a 6f 62 25 0d 0a 32 | 10 70 72 74 5f 6a 6f 62 |_job%..2|.prt_job|
|00002920| 25 20 3d 20 30 0d 0a 3c | 04 0d 0a 46 05 e0 0d 0a |% = 0..<|...F....|
|00002930| 50 04 0d 0a 5a 3f dd 20 | f2 69 6d 61 67 65 5f 61 |P...Z?. |.image_a|
|00002940| 75 74 6f 5f 73 63 61 6c | 65 28 70 77 25 2c 20 70 |uto_scal|e(pw%, p|
|00002950| 68 25 2c 20 69 77 25 2c | 20 69 68 25 2c 20 f8 20 |h%, iw%,| ih%, . |
|00002960| 73 63 61 6c 65 2c 20 f8 | 20 72 6f 74 61 74 65 25 |scale, .| rotate%|
|00002970| 29 0d 0a 64 11 20 20 ea | 20 73 31 2c 20 73 32 2c |)..d. .| s1, s2,|
|00002980| 20 6b 0d 0a 6e 14 20 20 | 73 31 20 3d 20 70 77 25 | k..n. |s1 = pw%|
|00002990| 20 2f 20 69 77 25 0d 0a | 78 13 20 20 6b 20 3d 20 | / iw%..|x. k = |
|000029a0| 70 68 25 20 2f 20 69 68 | 25 0d 0a 82 17 20 20 e7 |ph% / ih|%.... .|
|000029b0| 20 6b 20 3c 20 73 31 20 | 8c 20 73 31 20 3d 20 6b | k < s1 |. s1 = k|
|000029c0| 0d 0a 8c 14 20 20 e7 20 | 73 31 20 3e 3d 20 31 2e |.... . |s1 >= 1.|
|000029d0| 30 32 20 8c 0d 0a 96 1d | 20 20 20 20 6b 20 3d 20 |02 .....| k = |
|000029e0| 31 2e 30 20 3a 20 72 6f | 74 61 74 65 25 20 3d 20 |1.0 : ro|tate% = |
|000029f0| a3 0d 0a a0 07 20 20 cc | 0d 0a aa 16 20 20 20 20 |..... .|.... |
|00002a00| 73 32 20 3d 20 70 68 25 | 20 2f 20 69 77 25 0d 0a |s2 = ph%| / iw%..|
|00002a10| b4 15 20 20 20 20 6b 20 | 3d 20 70 77 25 20 2f 20 |.. k |= pw% / |
|00002a20| 69 68 25 0d 0a be 19 20 | 20 20 20 e7 20 6b 20 3c |ih%.... | . k <|
|00002a30| 20 73 32 20 8c 20 73 32 | 20 3d 20 6b 0d 0a c8 16 | s2 . s2| = k....|
|00002a40| 20 20 20 20 e7 20 73 32 | 20 3e 3d 20 31 2e 30 32 | . s2| >= 1.02|
|00002a50| 20 8c 0d 0a d2 1f 20 20 | 20 20 20 20 6b 20 3d 20 | ..... | k = |
|00002a60| 31 2e 30 20 3a 20 72 6f | 74 61 74 65 25 20 3d 20 |1.0 : ro|tate% = |
|00002a70| b9 0d 0a dc 09 20 20 20 | 20 cc 0d 0a e6 15 20 20 |..... | ..... |
|00002a80| 20 20 20 20 e7 20 73 31 | 20 3e 20 73 32 20 8c 0d | . s1| > s2 ..|
|00002a90| 0a f0 20 20 20 20 20 20 | 20 20 20 6b 20 3d 20 73 |.. | k = s|
|00002aa0| 31 20 3a 20 72 6f 74 61 | 74 65 25 20 3d 20 a3 0d |1 : rota|te% = ..|
|00002ab0| 0a fa 0b 20 20 20 20 20 | 20 cc 0d 0b 04 20 20 20 |... | .... |
|00002ac0| 20 20 20 20 20 20 6b 20 | 3d 20 73 32 20 3a 20 72 | k |= s2 : r|
|00002ad0| 6f 74 61 74 65 25 20 3d | 20 b9 0d 0b 0e 0b 20 20 |otate% =| ..... |
|00002ae0| 20 20 20 20 cd 0d 0b 18 | 16 20 20 20 20 20 20 6b | ....|. k|
|00002af0| 20 3d 20 6b 20 2a 20 30 | 2e 39 38 0d 0b 22 09 20 | = k * 0|.98..". |
|00002b00| 20 20 20 cd 0d 0b 2c 07 | 20 20 cd 0d 0b 36 0f 20 | ...,.| ...6. |
|00002b10| 20 73 63 61 6c 65 20 3d | 20 6b 0d 0b 40 05 e1 0d | scale =| k..@...|
|00002b20| 0b 4a 04 0d 0b 54 12 dd | 20 f2 70 72 69 6e 74 5f |.J...T..| .print_|
|00002b30| 65 72 72 6f 72 0d 0b 5e | 17 20 20 e7 20 70 72 74 |error..^|. . prt|
|00002b40| 5f 6a 6f 62 25 20 3c 3e | 20 30 20 8c 0d 0b 68 27 |_job% <>| 0 ...h'|
|00002b50| 20 20 20 20 c8 99 20 22 | 50 44 72 69 76 65 72 5f | .. "|PDriver_|
|00002b60| 41 62 6f 72 74 4a 6f 62 | 22 2c 20 70 72 74 5f 6a |AbortJob|", prt_j|
|00002b70| 6f 62 25 0d 0b 72 13 20 | 20 20 20 d9 20 23 70 72 |ob%..r. | . #pr|
|00002b80| 74 5f 6a 6f 62 25 0d 0b | 7c 14 20 20 20 20 70 72 |t_job%..||. pr|
|00002b90| 74 5f 6a 6f 62 25 20 3d | 20 30 0d 0b 86 07 20 20 |t_job% =| 0.... |
|00002ba0| cd 0d 0b 90 21 20 20 f1 | 20 f6 24 3b 20 3a 20 f1 |....! .| .$; : .|
|00002bb0| 20 22 20 61 74 20 6c 69 | 6e 65 20 22 3b 20 c3 28 | " at li|ne "; .(|
|00002bc0| 9e 29 0d 0b 9a 05 e1 0d | ff |.)......|. |
+--------+-------------------------+-------------------------+--------+--------+