home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / gbmv2.zip / GBMV2.HLP (.txt) < prev    next >
OS/2 Help File  |  1994-03-29  |  21KB  |  654 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Introduction to GbmV2 ΓòÉΓòÉΓòÉ
  3.  
  4. This is a simple bitmap viewer. 
  5.  
  6. Bitmap files in various formats may be loaded into memory. This is the actual 
  7. bitmap data. 
  8.  
  9. The program displays a view of the bitmap in its window. This is called the 
  10. view bitmap. The choice of how the view is made from the actual data may be 
  11. changed from the View menu. 
  12.  
  13. If the bitmap is smaller than the window, it is displayed centralised within 
  14. the window. 
  15.  
  16. If the bitmap is larger than the window, then scrollbars may be used to pick 
  17. the visible part of the bitmap. 
  18.  
  19. Once a bitmap is loaded, it may be printed to the default PM printer. 
  20.  
  21. All, or a part of, the current bitmap can be selected, and then copied to the 
  22. clipboard. 
  23.  
  24. 1bpp bitmaps are typically tricky to handle under OS/2 PM. 
  25.  
  26. This program will display a 1bpp bitmap using the 2 colours in the bitmap files 
  27. header, rather than the users current PM colour scheme. 
  28.  
  29. While files are loading, saving, printing etc., this program prevents you from 
  30. using its other functions. 
  31.  
  32. From the menu bar you can use: 
  33.  
  34. File 
  35.        To transfer the text to and from disk 
  36. Edit 
  37.        To transfer some or all of the bitmap to the OS/2 clipboard 
  38. Bitmap 
  39.        To perform simple operations on the bitmap 
  40. View 
  41.        To select how you see the current bitmap 
  42. Help 
  43.        To display various types of help for using this utility. 
  44.  
  45. You can display online help for GbmV2 by using the following methods. 
  46.  
  47. o For help about any pull-down option, highlight it and press F1. 
  48. o For help about any displayed dialog box, select the Help pushbutton. 
  49. o To see the Help Index, use the Help pull-down, or press F11. 
  50. o To see the Help table of contents, display a help panel and use the Help 
  51.   Options pull-down (or press Ctrl+C). 
  52.  
  53.  
  54. ΓòÉΓòÉΓòÉ 2. File menu ΓòÉΓòÉΓòÉ
  55.  
  56. The File menu allows you to load a new bitmap, to save to a bitmap file, and to 
  57. print. You can use: 
  58.  
  59. New 
  60.        To clear out the current bitmap. 
  61.  
  62. Open 
  63.        To discard the current bitmap and read a new file from disk. The file to 
  64.        load is selected via the Bitmap File dialog. 
  65.  
  66. Save 
  67.        To save the current bitmap to a file, under the current filename. The 
  68.        actual bitmap data, rather than the view what you see of it that is 
  69.        saved. 
  70.  
  71. Save as 
  72.        To save the current bitmap to a file with a filename you specify. The 
  73.        filename to save to is specified via the Bitmap File dialog. The actual 
  74.        bitmap data, rather than the view what you see of it that is saved. 
  75.  
  76.  
  77. ΓòÉΓòÉΓòÉ 2.1. New ΓòÉΓòÉΓòÉ
  78.  
  79. Will clear any loaded bitmap from memory. 
  80.  
  81. You can also begin a New file by pressing Ctrl+N. 
  82.  
  83.  
  84. ΓòÉΓòÉΓòÉ 2.2. Open ΓòÉΓòÉΓòÉ
  85.  
  86. Brings up a dialog box which allows you to specify the bitmap file to load. The 
  87. file to load to is specified via the Bitmap File dialog. 
  88.  
  89. You can also Open a file by pressing Ctrl+O. 
  90.  
  91.  
  92. ΓòÉΓòÉΓòÉ 2.3. Save ΓòÉΓòÉΓòÉ
  93.  
  94. Saves the currently loaded bitmap. 
  95.  
  96. It is the actual bitmap data, not the view you see, that is actually saved. For 
  97. example, the actual bitmap map can be 24 bit, but you may be looking at an (8 
  98. bit) error diffused version on the screen. 
  99.  
  100. If you wish to save under a new filename, use Save as instead. 
  101.  
  102. You can also Save to a file by pressing Ctrl+S. 
  103.  
  104.  
  105. ΓòÉΓòÉΓòÉ 2.4. Save As ΓòÉΓòÉΓòÉ
  106.  
  107. Saves the currently loaded bitmap, but under a new filename. The filename to 
  108. save to is specified via the Bitmap File dialog. 
  109.  
  110. If you wish to save under the current name, use Save instead. 
  111.  
  112. It is the actual bitmap data, not the view you see, that is actually saved. For 
  113. example, the actual bitmap can map be 24 bit, but you may be looking at an (8 
  114. bit) error diffused version on the screen. 
  115.  
  116. You can also Save as to a named file by pressing Ctrl+A. 
  117.  
  118.  
  119. ΓòÉΓòÉΓòÉ 2.5. Print ΓòÉΓòÉΓòÉ
  120.  
  121. Prints the currently loaded bitmap to the default PM printer. 
  122.  
  123. It is the screen view of the bitmap, not the actual bitmap data itself, that is 
  124. transferred to the printer. 
  125.  
  126. Works best when the default PM printer is a PostScript printer, as they 
  127. typically can simulate 26 gray-scale levels via halftoning. 
  128.  
  129. You can also Print by pressing Ctrl+P. 
  130.  
  131.  
  132. ΓòÉΓòÉΓòÉ 3. Edit menu ΓòÉΓòÉΓòÉ
  133.  
  134. The Edit menu allows you to select a sub-rectangle of the bitmap and then copy 
  135. it to the clipboard. 
  136.  
  137. You can use: 
  138.  
  139. Undo 
  140.        To undo the last operation performed on the bitmap. 
  141.  
  142. Select 
  143.        To select a part of the current bitmap. 
  144.  
  145. Select all 
  146.        To select all the current bitmap. 
  147.  
  148. Deselect 
  149.        To cancel the current selection. 
  150.  
  151. Copy 
  152.        This copies the current selection to the clipboard. 
  153.  
  154.  
  155. ΓòÉΓòÉΓòÉ 3.1. Undo ΓòÉΓòÉΓòÉ
  156.  
  157. The Undo operation undoes the last change to the bitmap. 
  158.  
  159. It is only selectable after a change has been done to the bitmap, such as those 
  160. provided under the Bitmap menu. 
  161.  
  162. In low memory situations, it may be impossible to undo a previous operation. 
  163.  
  164. Certain operations, such as New and Open are not undoable. 
  165.  
  166.  
  167. ΓòÉΓòÉΓòÉ 3.2. Select ΓòÉΓòÉΓòÉ
  168.  
  169. After choosing this menu selection, the mouse pointer changes into a 
  170. angle-bracket-L shape which you move to the bottom left of the region of the 
  171. bitmap you wish to select, and then press the left mouse button. Then it 
  172. changes to an angle-bracket-7 shape, which you then move to the top right of 
  173. the region you wish to select, and then press the left mouse button. 
  174.  
  175. This newly selected region becomes selected and is marked with a rectangle. 
  176.  
  177. This is the region that can subsequently become copied to the clipboard using 
  178. Copy. 
  179.  
  180. Alternatively, the whole bitmap can be selected using Select all. 
  181.  
  182. The Esc key cancels the selection process. 
  183.  
  184.  
  185. ΓòÉΓòÉΓòÉ 3.3. Select all ΓòÉΓòÉΓòÉ
  186.  
  187. After choosing this menu selection, the whole current bitmap is selected. 
  188.  
  189. This newly selected region becomes selected and is marked with a a rectangle. 
  190.  
  191. This is the region that can subsequently become copied to the clipboard using 
  192. Copy. 
  193.  
  194. Alternatively, just a part of the bitmap can be selected using Select. 
  195.  
  196. You can also Select all by pressing Ctrl+/. 
  197.  
  198.  
  199. ΓòÉΓòÉΓòÉ 3.4. Deselect ΓòÉΓòÉΓòÉ
  200.  
  201. This menu item removes the current selection. 
  202.  
  203. You can also Deselect by pressing Esc, or by clicking the right mouse button on 
  204. the bitmap. 
  205.  
  206.  
  207. ΓòÉΓòÉΓòÉ 3.5. Copy ΓòÉΓòÉΓòÉ
  208.  
  209. This can only occur if there is a selected region. 
  210.  
  211. This menu item copies the current selected region to the clipboard. 
  212.  
  213. A region can be selected using Select or Select all. 
  214.  
  215. It is the version you see on the screen that is copied to the clipboard, not 
  216. the actual original bitmap data itself. 
  217.  
  218. You can also Copy by pressing Ctrl+Ins. 
  219.  
  220.  
  221. ΓòÉΓòÉΓòÉ 4. Bitmap menu ΓòÉΓòÉΓòÉ
  222.  
  223. The Bitmap menu allows you to perform simple operations on the current bitmap. 
  224.  
  225. You can use: 
  226.  
  227. Reflect horizontally 
  228.        To reflect the bitmap left-to-right. 
  229.  
  230. Reflect vertically 
  231.        To reflect the bitmap left-to-right. 
  232.  
  233. Rotate 90 degrees 
  234.        To rotate the bitmap 90 degrees anticlockwise. 
  235.  
  236. Rotate 180 degrees 
  237.        To rotate the bitmap 180 degrees. 
  238.  
  239. Rotate 270 degrees 
  240.        To rotate the bitmap 90 degrees clockwise. 
  241.  
  242. Transpose x for y 
  243.        To transpose the bitmap x for y. 
  244.  
  245. Crop to selection 
  246.        To discard all but the selected part of the bitmap. 
  247.  
  248. Colour space... 
  249.        To map bitmap pixels / palettes between colour spaces. 
  250.  
  251. Map... 
  252.        To map between various numbers of bits per pixel and between various 
  253.        palettes. 
  254.  
  255. The Undo menuitem can be used to undo the last operation performed on a bitmap. 
  256.  
  257.  
  258. ΓòÉΓòÉΓòÉ 4.1. Reflect horizontally ΓòÉΓòÉΓòÉ
  259.  
  260. This reflects the whole bitmap left-to-right. 
  261.  
  262. Reflecting vertically can be done using the similar Reflect vertically 
  263. selection. 
  264.  
  265. Other operations on the bitmap can be accessed from the Bitmap menu. 
  266.  
  267.  
  268. ΓòÉΓòÉΓòÉ 4.2. Reflect vertically ΓòÉΓòÉΓòÉ
  269.  
  270. This reflects the whole bitmap top-to-bottom. 
  271.  
  272. Reflecting horizontally can be done using the similar Reflect horizontally 
  273. selection. 
  274.  
  275. Other operations on the bitmap can be accessed from the Bitmap menu. 
  276.  
  277.  
  278. ΓòÉΓòÉΓòÉ 4.3. Rotate 90 degrees ΓòÉΓòÉΓòÉ
  279.  
  280. This rotates the bitmap through 90 degrees clockwise. 
  281.  
  282. Other rotations may be acheived via the Rotate 180 degrees and Rotate 270 
  283. degrees commands. 
  284.  
  285. Other operations on the bitmap can be accessed from the Bitmap menu. 
  286.  
  287.  
  288. ΓòÉΓòÉΓòÉ 4.4. Rotate 180 degrees ΓòÉΓòÉΓòÉ
  289.  
  290. This rotates the bitmap through 180 degrees clockwise. 
  291.  
  292. Other rotations may be acheived via the Rotate 90 degrees and Rotate 270 
  293. degrees commands. 
  294.  
  295. Other operations on the bitmap can be accessed from the Bitmap menu. 
  296.  
  297.  
  298. ΓòÉΓòÉΓòÉ 4.5. Rotate 270 degrees ΓòÉΓòÉΓòÉ
  299.  
  300. This rotates the bitmap through 270 degrees clockwise. 
  301.  
  302. Other rotations may be acheived via the Rotate 90 degrees and Rotate 180 
  303. degrees commands. 
  304.  
  305. Other operations on the bitmap can be accessed from the Bitmap menu. 
  306.  
  307.  
  308. ΓòÉΓòÉΓòÉ 4.6. Transpose x for y ΓòÉΓòÉΓòÉ
  309.  
  310. This reflects the bitmap through the line y=x. 
  311.  
  312. Other operations on the bitmap can be accessed from the Bitmap menu. 
  313.  
  314.  
  315. ΓòÉΓòÉΓòÉ 4.7. Crop to selection ΓòÉΓòÉΓòÉ
  316.  
  317. This discards all the bitmap except the selected bit. 
  318.  
  319. Other operations on the bitmap can be accessed from the Bitmap menu. 
  320.  
  321.  
  322. ΓòÉΓòÉΓòÉ 4.8. Colour space... ΓòÉΓòÉΓòÉ
  323.  
  324. This menuitem will cause the Colour space dialog to appear. From here mappings 
  325. between intensity, L* cyclometric and gamma corrected colour spaces may be 
  326. performed. 
  327.  
  328. Other operations on the bitmap can be accessed from the Bitmap menu. 
  329.  
  330.  
  331. ΓòÉΓòÉΓòÉ 4.9. Map... ΓòÉΓòÉΓòÉ
  332.  
  333. This menuitem will cause the Map dialog to appear. From here mappings between 
  334. various numbers of bits per pixel and various palettes may be performed. 
  335.  
  336. Other operations on the bitmap can be accessed from the Bitmap menu. 
  337.  
  338.  
  339. ΓòÉΓòÉΓòÉ 5. View menu ΓòÉΓòÉΓòÉ
  340.  
  341. The View menu allows you to choose what representation (or view) of the bitmap 
  342. you have loaded will be used for display on the screen. 
  343.  
  344. You can use: 
  345.  
  346. Raw PM mapping 
  347.        To tell this program to perform no image enhancment for display 
  348.        purposes. The view bitmap is displayed as good as PM will, with no 
  349.        improvement. 
  350.  
  351. Halftoned 
  352.        To tell this program to show a halftoned version of the bitmap to the 
  353.        user, rather than the actual bitmap data itself. This generally looks 
  354.        slightly better and is quick to do. 
  355.  
  356. Error diffused 
  357.        To tell this program to show a error-diffused version of the bitmap to 
  358.        the user, rather than the actual bitmap data itself. This generally 
  359.        looks much better, but takes longer to do. 
  360.  
  361. This program makes a guess at the type of display adaptor you are using and 
  362. chooses the most appropriate form of halftoning or error-diffusion to use. 
  363. Specifically, it has algorithms known to work well on :- 
  364.  
  365. 16 colour VGA 
  366.  
  367. 256 colour 8514/A, XGA and Image Adaptor/A. 
  368.  
  369. 65536 direct colour XGA-2. 
  370.  
  371. If you actually wish to change the bitmap data itself, then you can use the Map 
  372. dialog to do this. 
  373.  
  374.  
  375. ΓòÉΓòÉΓòÉ 5.1. Raw PM mapping ΓòÉΓòÉΓòÉ
  376.  
  377. This tells this program to not perform any image enhancement that will make a 
  378. bitmap look closer to its true colours and shades on the screen. 
  379.  
  380. You can also select view Raw PM mapping by pressing Ctrl+R. 
  381.  
  382. It is possible to select other views from the View menu. 
  383.  
  384.  
  385. ΓòÉΓòÉΓòÉ 5.2. Halftoned ΓòÉΓòÉΓòÉ
  386.  
  387. This tells this program that it should present a halftoned view of the current 
  388. bitmap to the user. 
  389.  
  390. The actual bitmap data itself is not affected, only what you see on the screen. 
  391.  
  392. Hence if Save or Save as are used, the unchanged actual bitmap data is saved. 
  393.  
  394. Halftoning is generally quicker than error diffusion. 
  395.  
  396. You can also select view Halftoned by pressing Ctrl+H. 
  397.  
  398. It is possible to select other views from the View menu. 
  399.  
  400.  
  401. ΓòÉΓòÉΓòÉ 5.3. Error diffused ΓòÉΓòÉΓòÉ
  402.  
  403. This tells this program that it should present an error-diffused picture of the 
  404. current bitmap to the user. 
  405.  
  406. The actual bitmap data itself is not affected, only what you see on the screen. 
  407.  
  408. Hence if Save or Save as are used, the unchanged actual bitmap data is saved. 
  409.  
  410. Error diffusion takes longer than halftoning, but the quality is generally 
  411. higher, especially on continuous tone images. 
  412.  
  413. You can also select view Error diffused by pressing Ctrl+E. 
  414.  
  415. It is possible to select other views from the View menu. 
  416.  
  417.  
  418. ΓòÉΓòÉΓòÉ 6. Help menu ΓòÉΓòÉΓòÉ
  419.  
  420. Use this menu to bring up the help system. 
  421.  
  422.  
  423. ΓòÉΓòÉΓòÉ 6.1. Help for help ΓòÉΓòÉΓòÉ
  424.  
  425. Use this choice to bring up the help for the help system. 
  426.  
  427.  
  428. ΓòÉΓòÉΓòÉ 6.2. Extended Help ΓòÉΓòÉΓòÉ
  429.  
  430. Use this choice to bring up general help for GbmV2. 
  431.  
  432.  
  433. ΓòÉΓòÉΓòÉ 6.3. Keys help ΓòÉΓòÉΓòÉ
  434.  
  435. The following keys may be used in the main window :- 
  436.  
  437. o Ctrl+N selects New which clears the bitmap. 
  438.  
  439. o Ctrl+O to Open a new bitmap file via the Bitmap File dialog. 
  440.  
  441. o Ctrl+S to Save the current bitmap. 
  442.  
  443. o Ctrl+A selects Save as which saves the bitmap under a new filename, specified 
  444.   via the Bitmap File dialog. 
  445.  
  446. o Ctrl+P to Print the current bitmap. 
  447.  
  448. o Ctrl+R to select Raw PM mapping view mode. 
  449.  
  450. o Ctrl+H to select Halftoned view mode. 
  451.  
  452. o Ctrl+E to select Error diffused view mode. 
  453.  
  454. o Ctrl+/ to Select all all of the current bitmap. 
  455.  
  456. o Ctrl+\ to Deselect any current selection. 
  457.  
  458. o Esc to Deselect any current selection. 
  459.  
  460. o Ctrl+Ins to Copy the current selection to the clipboard. 
  461.  
  462. o The Arrow keys may be used to scroll around the bitmap. Note that 
  463.   Shift+Arrows behave like page up/down/left or right. 
  464.  
  465. o F3 to close GbmV2. 
  466.  
  467.  
  468. ΓòÉΓòÉΓòÉ 6.4. Help index ΓòÉΓòÉΓòÉ
  469.  
  470. Use this to bring up an index of the help. 
  471.  
  472.  
  473. ΓòÉΓòÉΓòÉ 7. Colour space dialog ΓòÉΓòÉΓòÉ
  474.  
  475. If a light is physically twice as bright, the eye does not necessarily see it 
  476. as twice as bright. Also, if a pixel is written onto a monitor screen with 
  477. twice the value, the physical intensity of the pixel is not necessarily double. 
  478.  
  479. How exactly should numbers inside a bitmap file relate to physical or perceived 
  480. intensitys when displayed on the screen? 
  481.  
  482. In OS/2 PM perceived intensitys are proportional to the values in the bitmap 
  483. file. Pixels in such a bitmap are in the L* cyclometric colour space. This is 
  484. done to ensure that an even scale of pixel values gives an even scale of 
  485. brightness, when viewed by the human eye. 
  486.  
  487. Ray Tracers often write pixel values in the bitmap proportional to the physical 
  488. intensity computed for that ray. Also this may be more suitable if certain 
  489. image processing/enhancement techniques are to be applied to the image data. 
  490. Such data is in the intensity colour space. 
  491.  
  492. Finally, if a bitmap holds values computed in such a way as to compensate for 
  493. the gamma of the monitor (ie: intensitys transformed to cancel out the gamma of 
  494. the monitor), then the data is in a gamma corrected colour space. Bitmap data 
  495. that has come directly from a greyscale or colour scanner may also be in a 
  496. gamma corrected colour space. 
  497.  
  498. Of course, despite OS/2 PM using the L* cyclometric colour space, this machine 
  499. is attached to a monitor with specific characteristics and your eyes also have 
  500. their own characteristics. But it is the responsibility of OS/2 PM screen 
  501. drivers to perform the mapping from the L* cyclometric colour space to suitable 
  502. palette entrys which take into account both the gamma (and shelf) of the 
  503. monitor in use, and the visual characteristics of the human eye. This is done 
  504. transparently to PM applications. 
  505.  
  506. The various mappings allow you map between any 2 of these 3 colour spaces. 
  507. Examples of typical usage follow :- 
  508.  
  509. Intensity to L* cyclometric 
  510.        You have loaded a bitmap file where the pixel values are proportional to 
  511.        the physical intensity. Such bitmaps often tend to look too dark under 
  512.        OS/2 PM. This will map the pixels to the L* cyclometric colour space, 
  513.        giving a better rendition under OS/2 PM. 
  514.  
  515. Intensity to gamma corrected 
  516.        The resulting bitmap, may still look too dark/light under OS/2 PM, but 
  517.        when saved, and displayed on a monitor with the relevant gamma and shelf 
  518.        with a program that directly controls the hardware, the correct 
  519.        rendition will result. 
  520.  
  521. L* cyclometric to Intensity 
  522.        You have a regular OS/2 PM bitmap, and wish to make the pixel values in 
  523.        the file directly proportional to the physical intensity. You might do 
  524.        this to generate a bitmap suitable for feeding into a Ray Tracer as a 2D 
  525.        texture map. 
  526.  
  527. L* cyclometric to gamma corrected 
  528.        As above, but generating bitmap bits suitable for directly placing in 
  529.        hardware registers. 
  530.  
  531. Gamma corrected to Intensity 
  532.        You have loaded a bitmap that has come directly from some scanner 
  533.        hardware, and wish to make bitmap where bits are proportional to 
  534.        intensity. 
  535.  
  536. Gamma corrected to L* cyclometric 
  537.        You have loaded a bitmap from a scanner, and wish to make a bitmap best 
  538.        suited for OS/2 PM. 
  539.  
  540. When mapping to or from the gamma corrected colour space, the gamma and shelf 
  541. values are significant. When the gamma corrected colour space is not involved, 
  542. the gamma and shelf parameters are greyed. For example, the gamma of the 8514 
  543. monitor is about 2.1. 
  544.  
  545. The shelf parameter will normally be left 0.0, but has significance for some 
  546. monitors. For example, on some 8514 monitors, if a greyscale of bitmap pixels 0 
  547. to 255 is displayed, the first 35 values come out equally black. So, here a 
  548. shelf of 0.136 (as 0.136*255=35) should be used. 
  549.  
  550. Mapping of this sort should really be done on 24 bit data, before 
  551. error-diffusion or halftoning takes place. 
  552.  
  553. If the current bitmap is 24 bpp, then each bitmap pixel is mapped. Otherwise, 
  554. the palette entrys are mapped. 
  555.  
  556. This dialog is brought up from the Colour space... menuitem. 
  557.  
  558.  
  559. ΓòÉΓòÉΓòÉ 8. Map dialog ΓòÉΓòÉΓòÉ
  560.  
  561. When the Convert pushbutton is pressed on this dialog, the current bitmap is 
  562. expanded from however many bits per pixel it currently is to 24 bits per pixel 
  563. (with no palette). 
  564.  
  565. Then a mapping is performed, to the desired number of bits per pixel and 
  566. palette specified. 
  567.  
  568. For some mappings, some or all of the values in the Values part of the dialog 
  569. box are used. Those which have no effect are greyed. 
  570.  
  571. Also, when mapping to some palettes, the option of using halftoning or error 
  572. diffusion may be available. When these are unavailable, they are greyed. 
  573.  
  574. 1bpp, black and white 
  575.        The bitmap is mapped to black and white. This is done by mapping each 
  576.        pixel to a grey value, and then seeing if the brightness is in the high 
  577.        50% or not. 
  578.  
  579. 4bpp, 8 colours 
  580.        This maps each pixel to one of black, white, red, green, blue, cyan, 
  581.        magenta or yellow. This option is handy for generating bitmaps to be fed 
  582.        into colour printers. 
  583.  
  584. 4bpp, 16 colour VGA palette 
  585.        Each pixel is mapped to a colour in the VGA palette used by DOS, Windows 
  586.        and OS/2 PM. 
  587.  
  588. 4bpp, 16 shades of grey 
  589.        Each pixel is mapped to one of 16 shades of grey. 
  590.  
  591. 8bpp, 7Rx8Gx4B palette 
  592.        This is a palette consisting of 7 levels of red, 8 levels of green and 4 
  593.        levels of blue. It is constructed this way because the eye is most 
  594.        sensitive to green, then to red, and least to blue. Most 32 bit OS/2 PM 
  595.        drivers, and the old 16 bit 8514/A driver use a palette with these 
  596.        colours in. 
  597.  
  598. 8bpp, 6Rx6Gx6B palette 
  599.        The old 16 bit XGA-1 OS/2 PM driver used a 6 red by 6 green by 6 blue 
  600.        palette. 
  601.  
  602. 8bpp, 256 shades of grey 
  603.        Each pixel is mapped to a greyscale via a weighted sum of the red, green 
  604.        and blue components. Grey = 30% red + 59% green + 11% blue. These 
  605.        correspond to the eyes relative sensitivities to these primary colours. 
  606.  
  607. 8bpp, 64R+64G+64B tri-pel palette 
  608.        The palette of the resulting bitmap has 64 shades of red, 64 of green 
  609.        and 64 of blue. Pixels in the source alternately have their red, green 
  610.        or blue component considered and a pixel written out from the relevant 
  611.        part of the palette. Therefore colour resolution is 6 bits of each of 
  612.        red, green and blue, at the expense of artifacts produced caused by the 
  613.        alternation and also at the expense of reducing the image brightness by 
  614.        a factor of 3. 
  615.  
  616. 24 bpp, keep R bits red, G green, B blue 
  617.        Although the resulting image has 24bpp, only R bits of red, G of green 
  618.        and B of blue are non-zero. XGA-2 in its 16bpp mode has 65536 colours, 
  619.        which are composed from 32 levels of red, 64 of green and 32 of blue. 
  620.        Thus R=5, G=6, B=5 can be used to transform an image into what can be 
  621.        displayed on XGA-2. 
  622.  
  623. 8bpp, as above, find N most used cols. 
  624.        After performing the above step, the 24bpp data is analysed to find the 
  625.        N most frequently occuring colours. Any pixels in the image in the N 
  626.        most used colours are mapped directly to that colour. Any pixel not in 
  627.        the N most used colours is mapped to the closest colour in the N most 
  628.        used. This may be used to make the best rendition for display by a DOS 
  629.        program that uses VGA 320x200 8bpp mode by setting R=6, G=6, B=6, N=256, 
  630.        since only 6 bits are significant in the VGA palette DACs, and we only 
  631.        have 256 colours in the palette. 
  632.  
  633. Important 
  634.  
  635. These mappings apply to the actual bitmap data and are nothing to do with the 
  636. viewing options available from the View menu. Therefore, if you load a bitmap, 
  637. error diffuse via this dialog box, and then save, the saved file is 
  638. error-diffused. This directly contrasts the View menu, where the error 
  639. diffusion is purely for display purposes. 
  640.  
  641. This dialog is brought up from the Map... menuitem. 
  642.  
  643.  
  644. ΓòÉΓòÉΓòÉ 9. Credits ΓòÉΓòÉΓòÉ
  645.  
  646. This code is the work of :- 
  647.  
  648.  
  649. {{{ Andy Key
  650.  
  651. Internet: ak@vnet.ibm.com
  652. IBM-VNET: AKEY AT HVTVM5
  653.  
  654. Electronic addresses valid at least until September 1994.