Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

571 lines
21 KiB

  1. ;----------------------------------------------------------------------------
  2. ; GRAPHICS.PRO File for Microsoft MS-DOS
  3. ;----------------------------------------------------------------------------
  4. ; (C)Copyright 1988-1991 Microsoft
  5. ;Licensed Material - Program Property of Microsoft
  6. ;----------------------------------------------------------------------------
  7. PRINTER HPDEFAULT
  8. ;
  9. ; SETUP
  10. ; esc*rA start graphics at current cursor position
  11. ; using current graphics resolution.
  12. ; GRAPHICS
  13. ; esc*b COUNT W DATA
  14. ; RESTORE
  15. ; esc*rB end graphics
  16. ;----------------------------------------------------------------------------
  17. DEFINE DATA,ROW
  18. DISPLAYMODE 4,5,13,19 ; 320x200
  19. SETUP 27,42,114,65
  20. GRAPHICS 27,42,98,COUNT,87,DATA
  21. PRINTBOX STD,2,2,ROTATE
  22. RESTORE 27,42,114,66
  23. DISPLAYMODE 6,14 ; 640x200
  24. SETUP 27,42,114,65
  25. GRAPHICS 27,42,98,COUNT,87,DATA
  26. PRINTBOX STD,2,1,ROTATE
  27. RESTORE 27,42,114,66
  28. DISPLAYMODE 15,16 ; 640x350
  29. SETUP 27,42,114,65
  30. GRAPHICS 27,42,98,COUNT,87,DATA
  31. PRINTBOX STD,2,1
  32. RESTORE 27,42,114,66
  33. DISPLAYMODE 17,18 ; 640x480
  34. SETUP 27,42,114,65
  35. GRAPHICS 27,42,98,COUNT,87,DATA
  36. PRINTBOX STD,2,1
  37. RESTORE 27,42,114,66
  38. ;----------------------------------------------------------------------------
  39. PRINTER DESKJET,LASERJETII
  40. ;
  41. ; SETUP
  42. ; esc*t75R select 75dpi
  43. ; esc*t150R select 150dpi
  44. ; esc*t300R select 300dpi
  45. ; esc&a#h#V move cursor position, in decipoints
  46. ; esc*r1A start graphics at current cursor position
  47. ; GRAPHICS
  48. ; esc*b COUNT W DATA
  49. ; RESTORE
  50. ; esc*rB end graphics
  51. ;----------------------------------------------------------------------------
  52. DEFINE DATA,ROW
  53. DISPLAYMODE 4,5,13,19 ; 320x200 100dpi
  54. SETUP 27,42,116,49,48,48,82,27,38,97,48,104,48,27,42,114,49,65
  55. GRAPHICS 27,42,98,COUNT,87,DATA
  56. PRINTBOX STD,4,3,ROTATE
  57. RESTORE 27,42,114,66,12
  58. DISPLAYMODE 6,14 ; 640x200 150dpi
  59. SETUP 27,42,116,49,53,48,82,27,38,97,57,55,53,104,52,57,56,86,27,42,114,49,65
  60. GRAPHICS 27,42,98,COUNT,87,DATA
  61. PRINTBOX STD,4,2,ROTATE
  62. RESTORE 27,42,114,66,12
  63. DISPLAYMODE 15,16 ; 640x350 150dpi
  64. SETUP 27,42,116,49,53,48,82,27,38,97,49,50,49,53,104,54,48,55,86,27,42,114,49,65
  65. GRAPHICS 27,42,98,COUNT,87,DATA
  66. PRINTBOX STD,2,2,ROTATE
  67. RESTORE 27,42,114,66,12
  68. DISPLAYMODE 17,18 ; 640x480 150dpi
  69. SETUP 27,42,116,49,53,48,82,27,38,97,53,56,56,104,54,57,55,86,27,42,114,49,65
  70. GRAPHICS 27,42,98,COUNT,87,DATA
  71. PRINTBOX STD,2,2,ROTATE
  72. RESTORE 27,42,114,66,12
  73. ;----------------------------------------------------------------------------
  74. PRINTER LASERJET
  75. ;
  76. ; SETUP
  77. ; esc*t75R select 75dpi
  78. ; esc&a#h#V move cursor position in decipoints
  79. ; esc*r1A start graphics at current cursor position
  80. ; GRAPHICS
  81. ; esc*b COUNT W DATA
  82. ; RESTORE
  83. ; esc*rB end graphics
  84. ;----------------------------------------------------------------------------
  85. DEFINE DATA,ROW
  86. DISPLAYMODE 4,5,13,19 ; 320x200 75dpi
  87. SETUP 27,42,116,55,53,82,27,38,97,49,48,50,48,104,53,52,51,86,27,42,114,49,65
  88. GRAPHICS 27,42,98,COUNT,87,DATA
  89. PRINTBOX STD,2,2,ROTATE
  90. RESTORE 27,42,114,66,12
  91. DISPLAYMODE 6,14 ; 640x200 75dpi
  92. SETUP 27,42,116,55,53,82,27,38,97,49,48,50,48,104,53,52,51,86,27,42,114,49,65
  93. GRAPHICS 27,42,98,COUNT,87,DATA
  94. PRINTBOX STD,2,1,ROTATE
  95. RESTORE 27,42,114,66,12
  96. DISPLAYMODE 15,16 ; 640x350 75dpi
  97. SETUP 27,42,116,55,53,82,27,42,114,49,65
  98. GRAPHICS 27,42,98,COUNT,87,DATA
  99. PRINTBOX STD,2,1 ROTATE
  100. RESTORE 27,42,114,66,12
  101. DISPLAYMODE 17,18 ; 640x480 75dpi
  102. SETUP 27,42,116,55,53,82,27,42,114,48,65
  103. GRAPHICS 27,42,98,COUNT,87,DATA
  104. PRINTBOX STD,2,1,ROTATE
  105. RESTORE 27,42,114,66,12
  106. ;----------------------------------------------------------------------------
  107. PRINTER PAINTJET
  108. ;
  109. ; Treats the Paintjet as a B&W device for both text and color. Specifying
  110. ; one color plane uses just black and white as the two available colors.
  111. ;
  112. ; SETUP
  113. ; esc*t90R select 90dpi
  114. ; esc*t180R select 180dpi
  115. ; esc*r1U select 1 color plane and reset color palette.
  116. ; esc&a#H move curser position, in decipoints.
  117. ; esc*r1A start graphics at current cursor position.
  118. ; GRAPHICS
  119. ; esc*b COUNT W DATA
  120. ; RESTORE
  121. ; esc*rB end graphics
  122. ;----------------------------------------------------------------------------
  123. DEFINE DATA,ROW
  124. DISPLAYMODE 4,5,13,19 ; 320x200 180dpi
  125. SETUP 27,42,116,49,56,48,82,27,42,114,49,85,27,38,97,49,50,54,48,72,27,42,114,49,65
  126. GRAPHICS 27,42,98,COUNT,87,DATA
  127. PRINTBOX STD,4,3,ROTATE
  128. RESTORE 27,42,114,066
  129. DISPLAYMODE 6,14 ; 640x200 180dpi
  130. SETUP 27,42,116,49,56,48,82,27,42,114,49,85,27,38,97,49,50,54,48,72,27,42,114,49,65
  131. GRAPHICS 27,42,98,COUNT,87,DATA
  132. PRINTBOX STD,4,2,ROTATE
  133. RESTORE 27,42,114,066
  134. DISPLAYMODE 15,16 ; 640x350 180dpi
  135. SETUP 27,42,116,49,56,48,82,27,42,114,49,85,27,38,97,52,53,72,27,42,114,49,65
  136. GRAPHICS 27,42,98,COUNT,87,DATA
  137. PRINTBOX STD,4,3,ROTATE
  138. RESTORE 27,42,114,066
  139. DISPLAYMODE 17,18 ; 640x480 180dpi
  140. SETUP 27,42,116,49,56,48,82,27,42,114,49,85,27,38,97,57,53,48,72,27,42,114,49,65
  141. GRAPHICS 27,42,98,COUNT,87,DATA
  142. PRINTBOX STD,2,2,ROTATE
  143. RESTORE 27,42,114,066
  144. ;----------------------------------------------------------------------------
  145. PRINTER QUIETJET
  146. ;
  147. ; SETUP
  148. ; esc*t96R select 96x96dpi
  149. ; esc*t192R select 192x192dpi
  150. ; esc*t1280S select 192x96dpi
  151. ; esc*rA start graphics at current cursor position
  152. ; GRAPHICS
  153. ; esc*b COUNT W DATA
  154. ; RESTORE
  155. ; esc*rB end graphics
  156. ;----------------------------------------------------------------------------
  157. DEFINE DATA,ROW
  158. DISPLAYMODE 4,5,13,19 ; 320x200 96x96dpi
  159. SETUP 27,42,116,57,54,82,27,42,114,65
  160. GRAPHICS 27,42,98,COUNT,87,DATA
  161. PRINTBOX STD,4,3,ROTATE
  162. RESTORE 27,42,114,66
  163. DISPLAYMODE 6,14 ; 640x200 192x96dpi
  164. SETUP 27,42,114,49,50,56,48,83,27,42,114,65
  165. GRAPHICS 27,42,98,COUNT,87,DATA
  166. PRINTBOX STD,2,2
  167. RESTORE 27,42,114,66
  168. DISPLAYMODE 15,16 ; 640x350 192x96dpi
  169. SETUP 27,42,114,49,50,56,48,83,27,42,114,65
  170. GRAPHICS 27,42,98,COUNT,87,DATA
  171. PRINTBOX STD,2,1
  172. RESTORE 27,42,114,66
  173. DISPLAYMODE 17,18 ; 640x480 192x96dpi
  174. SETUP 27,42,114,49,50,56,48,83,27,42,114,65
  175. GRAPHICS 27,42,98,COUNT,87,DATA
  176. PRINTBOX STD,2,1
  177. RESTORE 27,42,114,66
  178. ;----------------------------------------------------------------------------
  179. PRINTER QUIETJETPLUS
  180. ;
  181. ; SETUP
  182. ; esc*t96R select 96x96dpi
  183. ; esc*t192R select 192x192dpi
  184. ; esc*t1280S select 192x96dpi
  185. ; esc*rA start graphics at current cursor position
  186. ; GRAPHICS
  187. ; esc*b COUNT W DATA
  188. ; RESTORE
  189. ; esc*rB end graphics
  190. ;----------------------------------------------------------------------------
  191. DEFINE DATA,ROW
  192. DISPLAYMODE 4,5,13,19 ; 320x200 96x96dpi
  193. SETUP 27,42,116,57,54,82,27,42,114,65
  194. GRAPHICS 27,42,98,COUNT,87,DATA
  195. PRINTBOX STD,4,3,ROTATE
  196. RESTORE 27,42,114,66
  197. DISPLAYMODE 6,14 ; 640x200 96x96dpi
  198. SETUP 27,42,116,57,54,82,27,42,114,65
  199. GRAPHICS 27,42,98,COUNT,87,DATA
  200. PRINTBOX STD,4,1,ROTATE
  201. RESTORE 27,42,114,66
  202. DISPLAYMODE 15,16 ; 640x350 192x96dpi
  203. SETUP 27,42,114,49,50,56,48,83,27,42,114,65
  204. GRAPHICS 27,42,98,COUNT,87,DATA
  205. PRINTBOX STD,4,3
  206. RESTORE 27,42,114,66
  207. DISPLAYMODE 17,18 ; 640x480 96x96dpi
  208. SETUP 27,42,116,57,54,82,27,42,114,65
  209. GRAPHICS 27,42,98,COUNT,87,DATA
  210. PRINTBOX STD,2,2
  211. RESTORE 27,42,114,66
  212. ;----------------------------------------------------------------------------
  213. PRINTER RUGGEDWRITER
  214. ;
  215. ; SETUP
  216. ; esc*t90R select 90dpi
  217. ; esc*t180R select 180dpi
  218. ; esc&a#H move curser position, in decipoints.
  219. ; esc*r1A start graphics at current cursor position.
  220. ; GRAPHICS
  221. ; esc*b COUNT W DATA
  222. ; RESTORE
  223. ; esc*rB end graphics
  224. ;----------------------------------------------------------------------------
  225. DEFINE DATA,ROW
  226. DISPLAYMODE 4,5,13,19 ; 320x200 180dpi
  227. SETUP 27,42,116,49,56,48,82,27,38,97,49,50,54,48,72,27,42,114,49,65
  228. GRAPHICS 27,42,98,COUNT,87,DATA
  229. PRINTBOX STD,4,3,ROTATE
  230. RESTORE 27,42,114,066
  231. DISPLAYMODE 6,14 ; 640x200 180dpi
  232. SETUP 27,42,116,49,56,48,82,27,38,97,49,50,54,48,72,27,42,114,49,65
  233. GRAPHICS 27,42,98,COUNT,87,DATA
  234. PRINTBOX STD,4,2,ROTATE
  235. RESTORE 27,42,114,066
  236. DISPLAYMODE 15,16 ; 640x350 90dpi
  237. SETUP 27,42,116,57,48,82,27,38,97,49,51,53,72,27,42,114,49,65
  238. GRAPHICS 27,42,98,COUNT,87,DATA
  239. PRINTBOX STD,2,1,ROTATE
  240. RESTORE 27,42,114,066
  241. DISPLAYMODE 17,18 ; 640x480 180dpi
  242. SETUP 27,42,116,49,56,48,82,27,38,97,57,53,48,72,27,42,114,49,65
  243. GRAPHICS 27,42,98,COUNT,87,DATA
  244. PRINTBOX STD,2,2,ROTATE
  245. RESTORE 27,42,114,066
  246. ;----------------------------------------------------------------------------
  247. PRINTER RUGGEDWRITERWIDE
  248. ;
  249. ; SETUP
  250. ; esc*t90R select 90dpi
  251. ; esc*t180R select 180dpi
  252. ; esc&a#H move curser position, in decipoints.
  253. ; esc*r1A start graphics at current cursor position.
  254. ; GRAPHICS
  255. ; esc*b COUNT W DATA
  256. ; RESTORE
  257. ; esc*rB end graphics
  258. ;----------------------------------------------------------------------------
  259. DEFINE DATA,ROW
  260. DISPLAYMODE 4,5,13,19 ; 320x200 90dpi
  261. SETUP 27,42,116,57,48,82,27,38,97,49,55,49,48,72,27,42,114,49,65
  262. GRAPHICS 27,42,98,COUNT,87,DATA
  263. PRINTBOX STD,4,3,ROTATE
  264. RESTORE 27,42,114,066
  265. DISPLAYMODE 6,14 ; 640x200 90dpi
  266. SETUP 27,42,116,57,48,82,27,38,97,49,55,49,48,72,27,42,114,49,65
  267. GRAPHICS 27,42,98,COUNT,87,DATA
  268. PRINTBOX STD,4,1,ROTATE
  269. RESTORE 27,42,114,066
  270. DISPLAYMODE 15,16 ; 640x350 90dpi
  271. SETUP 27,42,116,57,48,82,27,38,97,50,48,55,48,72,27,42,114,49,65
  272. GRAPHICS 27,42,98,COUNT,87,DATA
  273. PRINTBOX STD,2,1,ROTATE
  274. RESTORE 27,42,114,066
  275. DISPLAYMODE 17,18 ; 640x480 180dpi
  276. SETUP 27,42,116,49,56,48,82,27,38,97,50,57,55,48,72,27,42,114,49,65
  277. GRAPHICS 27,42,98,COUNT,87,DATA
  278. PRINTBOX STD,2,2,ROTATE
  279. RESTORE 27,42,114,066
  280. ;----------------------------------------------------------------------------
  281. PRINTER THINKJET
  282. ;
  283. ; SETUP
  284. ; esc*r640S select 96dpi
  285. ; esc*r1280S select 192dpi
  286. ; esc*rA start graphics at current cursor position.
  287. ; GRAPHICS
  288. ; esc*b COUNT W DATA
  289. ; RESTORE
  290. ; esc*rB end graphics
  291. ;----------------------------------------------------------------------------
  292. DEFINE DATA,ROW
  293. DISPLAYMODE 4,5,13,19 ; 320x200 192x96dpi
  294. SETUP 27,42,114,49,50,56,48,83,27,42,114,65
  295. GRAPHICS 27,42,98,COUNT,87,DATA
  296. PRINTBOX STD,4,2
  297. RESTORE 27,42,114,66
  298. DISPLAYMODE 6,14 ; 640x200 192x96dpi
  299. SETUP 27,42,114,49,50,56,48,83,27,42,114,65
  300. GRAPHICS 27,42,98,COUNT,87,DATA
  301. PRINTBOX STD,2,2
  302. RESTORE 27,42,114,66
  303. DISPLAYMODE 15,16 ; 640x350 192x96dpi
  304. SETUP 27,42,114,49,50,56,48,83,27,42,114,65
  305. GRAPHICS 27,42,98,COUNT,87,DATA
  306. PRINTBOX STD,2,1
  307. RESTORE 27,42,114,66
  308. DISPLAYMODE 17,18 ; 640x480 192x96dpi
  309. SETUP 27,42,114,49,50,56,48,83,27,42,114,65
  310. GRAPHICS 27,42,98,COUNT,87,DATA
  311. PRINTBOX STD,2,1
  312. RESTORE 27,42,114,66
  313. ;----------------------------------------------------------------------------
  314. PRINTER GRAPHICS,THERMAL ;; 5152, 4201, 4202(8"), 5201-002(8"), 5202, 3812
  315. ;; 4207, 4208, 5140
  316. ; Maximum Print width: 8"
  317. ; Horizontal BPI: 120 Vertical BPI: 72
  318. ; SETUP Statements contain the following escape sequences:
  319. ; 27,51,24 = set line spacing to 24/216
  320. ; GRAPHICS Statements use ESC "L" with the last two bytes being
  321. ; the data count (low,high)
  322. DISPLAYMODE 4,5,13,19 ;; 320x200 > 6.7"x8.9" rotated
  323. SETup 27,51,24
  324. GRAPHICS 32,32,32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  325. PRINTBOX STD,4,2,ROTATE
  326. PRINTBOX LCD,2,2,ROTATE
  327. DISPLAYMODE 6,14 ;; 640x200 > 6.7"x8.9" rotated
  328. SETup 27,51,24
  329. GRAPHICS 32,32,32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  330. PRINTBOX STD,4,1,ROTATE
  331. PRINTBOX LCD,2,1,ROTATE
  332. DISPLAYMODE 15,16 ;; 640x350 > 5.8"x8.9" rotated
  333. SETup 27,51,24
  334. GRAPHICS 32,32,32,32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  335. PRINTBOX STD,2,1,ROTATE
  336. PRINTBOX LCD ;; PC/Convertible doesn't support these modes
  337. DISPLAYMODE 17,18 ;; 640x480 > 8"x8.9" rotated
  338. SETup 27,51,24
  339. GRAPHICS 27,76,LOWCOUNT,HIGHCOUNT
  340. PRINTBOX STD,2,1,ROTATE
  341. PRINTBOX LCD ;; PC/Convertible doesn't support these modes
  342. ;---------------------------------------------------------------------------
  343. PRINTER COLOR8 ;; 5182 CMY Ribbon
  344. ; Maximum Print width: 8"
  345. ; Horizontal BPI: 168 in 1:1 aspect ratio, 140 in 5:6 aspect ratio
  346. ; Vertical BPI: 84
  347. ; SETUP Statements contain the following escape sequences:
  348. ; 27,51,14 = set line spacing to 14/144
  349. ; 27,110,[0|1] = 0 sets aspect ratio to 5:6, 1 sets it to 1:1
  350. ; GRAPHICS Statements use ESC "L" with the last two bytes being
  351. ; the data count (low,high)
  352. COLORSELECT Y,27,121 ;; yellow band
  353. COLORSELECT M,27,109 ;; magenta band
  354. COLORSELECT C,27,99 ;; cyan band
  355. COLORSELECT B,27,98 ;; black band
  356. ;;
  357. ;; Following RGB's represent the first 16
  358. ;; screen colors.
  359. ;; SCREEN COLOR PRINT COLOR
  360. ;; ------------ -----------
  361. COLORPRINT 0,0,0,B ;; BLACK BLACK
  362. COLORPRINT 0,0,42,C ;; BLUE CYAN
  363. COLORPRINT 0,42,0,Y,C ;; GREEN GREEN
  364. COLORPRINT 0,42,42,C ;; CYAN CYAN
  365. COLORPRINT 42,0,0,Y,M ;; RED RED
  366. COLORPRINT 42,0,42,C,M ;; PURPLE PURPLE
  367. COLORPRINT 42,21,0,Y,C,M ;; BROWN BROWN
  368. COLORPRINT 42,42,42 ;; LOW WHITE WHITE (NOTHING)
  369. COLORPRINT 21,21,21,B ;; GREY BLACK
  370. COLORPRINT 21,21,63,C ;; HIGH BLUE CYAN
  371. COLORPRINT 21,63,21,Y,C ;; HIGH GREEN GREEN
  372. COLORPRINT 21,63,63,C ;; HIGH CYAN CYAN
  373. COLORPRINT 63,21,21,Y,M ;; HIGH RED RED
  374. COLORPRINT 63,21,63,M ;; MAGENTA MAGENTA
  375. COLORPRINT 63,63,21,Y ;; YELLOW YELLOW
  376. COLORPRINT 63,63,63 ;; HIGH WHITE WHITE (NOTHING)
  377. COLORPRINT 42,42,0,Y ;; This statement maps the "yellow" in CGA
  378. ;; palette 0 to yellow
  379. ;;
  380. DISPLAYMODE 4,5,13,19 ;; 320x200
  381. SETUP 27,51,14,27,110,0 ;; aspect ratio = 5:6
  382. GRAPHICS 32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  383. PRINTBOX STD,4,2,ROTATE
  384. DISPLAYMODE 6,14 ;; 640x200
  385. SETUP 27,51,14,27,110,0 ;; aspect ratio = 5:6
  386. GRAPHICS 32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  387. PRINTBOX STD,4,1,ROTATE
  388. DISPLAYMODE 15,16 ;; 640x350
  389. SETUP 27,51,14,27,110,1 ;; aspect ratio = 1:1
  390. GRAPHICS 32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  391. PRINTBOX STD,3,1,ROTATE
  392. DISPLAYMODE 17,18 ;; 640x480
  393. SETUP 27,51,14,27,110,1 ;; aspect ratio = 1:1
  394. GRAPHICS 32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  395. PRINTBOX STD,2,1
  396. ;---------------------------------------------------------------------------
  397. PRINTER COLOR4 ;; 5182 RGB Ribbon
  398. ; Maximum Print width: 8"
  399. ; Horizontal BPI: 168 in 1:1 aspect ratio, 140 in 5:6 aspect ratio
  400. ; Vertical BPI: 84
  401. ; SETUP Statements contain the following escape sequences:
  402. ; 27,51,14 = set line spacing to 14/144
  403. ; 27,110,[0|1] = 0 sets aspect ratio to 5:6, 1 sets it to 1:1
  404. ; GRAPHICS Statements use ESC "L" with the last two bytes being
  405. ; the data count (low,high)
  406. COLORSELECT R,27,121 ;; red band
  407. COLORSELECT G,27,109 ;; green band
  408. COLORSELECT B,27,99 ;; blue band
  409. COLORSELECT X,27,98 ;; black band
  410. ;;
  411. ;; Following RGB's represent the first 16
  412. ;; screen colors.
  413. ;; SCREEN COLOR PRINT COLOR
  414. ;; ------------ -----------
  415. COLORPRINT 0,0,0,X ;; BLACK BLACK
  416. COLORPRINT 0,0,42,B ;; BLUE BLUE
  417. COLORPRINT 0,42,0,G ;; GREEN GREEN
  418. COLORPRINT 0,42,42,B ;; CYAN BLUE
  419. COLORPRINT 42,0,0,R ;; RED RED
  420. COLORPRINT 42,0,42,R ;; PURPLE RED
  421. COLORPRINT 42,21,0,X ;; BROWN BLACK
  422. COLORPRINT 42,42,42 ;; LOW WHITE WHITE (NOTHING)
  423. COLORPRINT 21,21,21,X ;; GREY BLACK
  424. COLORPRINT 21,21,63,B ;; HIGH BLUE BLUE
  425. COLORPRINT 21,63,21,G ;; HIGH GREEN GREEN
  426. COLORPRINT 21,63,63,B ;; HIGH CYAN BLUE
  427. COLORPRINT 63,21,21,R ;; HIGH RED RED
  428. COLORPRINT 63,21,63,R ;; MAGENTA RED
  429. COLORPRINT 63,63,21 ;; YELLOW WHITE (NOTHING)
  430. COLORPRINT 63,63,63 ;; HIGH WHITE WHITE (NOTHING)
  431. COLORPRINT 42,42,0,B ;; This statement maps the "yellow" in CGA
  432. ;; palette 0 to blue as was done in
  433. ;; versions of GRAPHICS
  434. ;;
  435. DISPLAYMODE 4,5,13,19 ;; 320x200
  436. SETUP 27,51,14,27,110,0 ;; aspect ratio = 5:6
  437. GRAPHICS 32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  438. PRINTBOX STD,4,2,ROTATE
  439. DISPLAYMODE 6,14 ;; 640x200
  440. SETUP 27,51,14,27,110,0 ;; aspect ratio = 5:6
  441. GRAPHICS 32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  442. PRINTBOX STD,4,1,ROTATE
  443. DISPLAYMODE 15,16 ;; 640x350
  444. SETUP 27,51,14,27,110,1 ;; aspect ratio = 1:1
  445. GRAPHICS 32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  446. PRINTBOX STD,3,1,ROTATE
  447. DISPLAYMODE 17,18 ;; 640x480
  448. SETUP 27,51,14,27,110,1 ;; aspect ratio = 1:1
  449. GRAPHICS 32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  450. PRINTBOX STD,2,1
  451. ;---------------------------------------------------------------------------
  452. PRINTER GRAPHICSWIDE ;; 4202(13.5"), 5201-002(13.5")
  453. ; Maximum Print width: 13.5"
  454. ; Horizontal BPI: 120 Vertical BPI: 72
  455. ; SETUP Statements contain the following escape sequences:
  456. ; 27,88,1,255 = enable 13.5" printing
  457. ; 27,51,24 = set line spacing to 24/216
  458. ; 27,51,18 = set line spacing to 18/216 (320x200 MODES ONLY!!)
  459. ; GRAPHICS Statements use ESC "L" with the last two bytes being
  460. ; the data count (low,high)
  461. DISPLAYMODE 4,5,13,19 ;; 320x200 > 10.7"x8.3" non-rotated
  462. SETup 27,88,1,255,27,51,18
  463. GRAPHICS 27,76,LOWCOUNT,HIGHCOUNT
  464. PRINTBOX STD,4,3
  465. DISPLAYMODE 6,14 ;; 640x200 - same as for 8" printing
  466. SETup 27,88,1,255,27,51,24
  467. GRAPHICS 27,76,LOWCOUNT,HIGHCOUNT
  468. PRINTBOX STD,4,1,ROTATE
  469. DISPLAYMODE 15,16 ;; 640x350 > 11.7"x17.8" rotated
  470. SETup 27,88,1,255,27,51,24
  471. GRAPHICS 27,76,LOWCOUNT,HIGHCOUNT
  472. PRINTBOX STD,4,2,ROTATE
  473. DISPLAYMODE 17,18 ;; 640x480 > 12"x17.8" rotated
  474. SETup 27,88,1,255,27,51,24
  475. GRAPHICS 27,76,LOWCOUNT,HIGHCOUNT
  476. PRINTBOX STD,3,2,ROTATE
  477. ;---------------------------------------------------------------------------
  478. PRINTER COLOR1 ;; 5182 with black ribbon
  479. ; Maximum Print width: 8"
  480. ; Horizontal BPI: 168 in 1:1 aspect ratio, 140 in 5:6 aspect ratio
  481. ; Vertical BPI: 84
  482. ; SETUP Statements contain the following escape sequences:
  483. ; 27,51,14 = set line spacing to 14/144
  484. ; 27,110,[0|1] = 0 sets aspect ratio to 5:6, 1 sets it to 1:1
  485. ; GRAPHICS Statements use ESC "L" with the last two bytes being
  486. ; the data count (low,high)
  487. DARKADJUST 0 ; Code a positive number to lighten
  488. ; printing. Suggested value = 10
  489. DISPLAYMODE 4,5,13,19 ;; 320x200
  490. SETUP 27,51,14,27,110,0 ;; aspect ratio = 5:6
  491. GRAPHICS 32,32,32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  492. PRINTBOX STD,4,2,ROTATE
  493. PRINTBOX LCD,2,2,ROTATE
  494. DISPLAYMODE 6,14 ;; 640x200
  495. SETUP 27,51,14,27,110,0 ;; aspect ratio = 5:6
  496. GRAPHICS 32,32,32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  497. PRINTBOX STD,4,1,ROTATE
  498. PRINTBOX LCD,2,1,ROTATE
  499. DISPLAYMODE 15,16 ;; 640x350
  500. SETUP 27,51,14,27,110,1 ;; aspect ratio = 1:1
  501. GRAPHICS 32,32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  502. PRINTBOX STD,3,1,ROTATE
  503. PRINTBOX LCD ;; PC/Convertible doesn't support these modes
  504. DISPLAYMODE 17,18 ;; 640x480
  505. SETUP 27,51,14,27,110,1 ;; aspect ratio = 1:1
  506. GRAPHICS 32,32,32,32,27,76,LOWCOUNT,HIGHCOUNT
  507. PRINTBOX STD,2,1
  508. PRINTBOX LCD ;; PC/Convertible doesn't support these modes
  509. ;===========================================================================
  510. ; End of Profile
  511. ;===========================================================================
  512.