home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / gbmos2pm.zip / gbmv2 / gbmv2.HLP (.txt) < prev    next >
OS/2 Help File  |  1999-03-21  |  25KB  |  791 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.      For help about any pull-down option, highlight it and press F1. 
  48.      For help about any displayed dialog box, select the Help pushbutton. 
  49.      To see the Help Index, use the Help pull-down, or press F11. 
  50.      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 
  64.         to 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.  Export to MetaFile 
  77.         To save the current bitmap in PM metafile form. 
  78.  
  79.  Print 
  80.         To print the current bitmap to the default PM printer. 
  81.  
  82.  Snapshot 
  83.         To take a snapshot of the screen. 
  84.  
  85.  
  86. ΓòÉΓòÉΓòÉ 2.1. New ΓòÉΓòÉΓòÉ
  87.  
  88. Will clear any loaded bitmap from memory. 
  89.  
  90. You can also begin a New file by pressing Ctrl+N. 
  91.  
  92.  
  93. ΓòÉΓòÉΓòÉ 2.2. Open ΓòÉΓòÉΓòÉ
  94.  
  95. Brings up a dialog box which allows you to specify the bitmap file to load. The 
  96. file to load to is specified via the Bitmap File dialog. 
  97.  
  98. You can also Open a file by pressing Ctrl+O. 
  99.  
  100.  
  101. ΓòÉΓòÉΓòÉ 2.3. Save ΓòÉΓòÉΓòÉ
  102.  
  103. Saves the currently loaded bitmap. 
  104.  
  105. It is the actual bitmap data, not the view you see, that is actually saved. For 
  106. example, the actual bitmap map can be 24 bit, but you may be looking at an (8 
  107. bit) error diffused version on the screen. 
  108.  
  109. If you wish to save under a new filename, use Save as instead. 
  110.  
  111. You can also Save to a file by pressing Ctrl+S. 
  112.  
  113.  
  114. ΓòÉΓòÉΓòÉ 2.4. Save As ΓòÉΓòÉΓòÉ
  115.  
  116. Saves the currently loaded bitmap, but under a new filename. The filename to 
  117. save to is specified via the Bitmap File dialog. 
  118.  
  119. If you wish to save under the current name, use Save instead. 
  120.  
  121. It is the actual bitmap data, not the view you see, that is actually saved. For 
  122. example, the actual bitmap can map be 24 bit, but you may be looking at an (8 
  123. bit) error diffused version on the screen. 
  124.  
  125. You can also Save as to a named file by pressing Ctrl+A. 
  126.  
  127.  
  128. ΓòÉΓòÉΓòÉ 2.5. Export MetaFile ΓòÉΓòÉΓòÉ
  129.  
  130. This allows you to write a PM MetaFile, which contains the current bitmap. You 
  131. can only do this when GbmV2 has a bitmap loaded. 
  132.  
  133. It is the view bitmap which gets placed into the metafile. 
  134.  
  135. This option is provided because some programs will not accept bitmaps correctly 
  136. or at all. 
  137.  
  138.  
  139. ΓòÉΓòÉΓòÉ 2.6. Print ΓòÉΓòÉΓòÉ
  140.  
  141. Prints the currently loaded bitmap to the default PM printer. 
  142.  
  143. It is the screen view of the bitmap, not the actual bitmap data itself, that is 
  144. transferred to the printer. 
  145.  
  146. Works best when the default PM printer is a PostScript printer, as they 
  147. typically can simulate 26 gray-scale levels via halftoning. 
  148.  
  149. You can also Print by pressing Ctrl+P. 
  150.  
  151.  
  152. ΓòÉΓòÉΓòÉ 2.7. Snapshot ΓòÉΓòÉΓòÉ
  153.  
  154. This discards any currently loaded bitmap, and then replaces it with a snapshot 
  155. of the current desktop. 
  156.  
  157. This can then be cropped to the desired size by using the Select menuitem to 
  158. pick a subrectangle, and then the Crop to selection menuitem to trim to that 
  159. size. 
  160.  
  161. When you select Snapshot, GbmV2 does the following :- 
  162.  
  163.       Makes itself invisible. 
  164.  
  165.       Waits 1 second, to allow windows that were previously obscured by GbmV2 
  166.       to repaint themselves. 
  167.  
  168.       Copies the screen to an internal bitmap. 
  169.  
  170.       Makes itself visible again. 
  171.  
  172.       Queries the data from this bitmap. 
  173.  
  174.  As the Snapshotted data has come from the screen, GbmV2 will set the viewing 
  175.  mode to Raw PM mapping. For a description of viewing modes, select the help on 
  176.  the View menu. 
  177.  
  178.  
  179. ΓòÉΓòÉΓòÉ 3. Edit menu ΓòÉΓòÉΓòÉ
  180.  
  181. The Edit menu allows you to select a sub-rectangle of the bitmap. Some 
  182. functions on the Bitmap menu behave differently depending upon whether there is 
  183. a current selection or not. For example, Reflect horizontally will reflect just 
  184. the selection if a selection is defined, else it will reflect the whole image. 
  185.  
  186. It is also possible to copy selections to the clipboard. You can use: 
  187.  
  188.  Undo 
  189.         To undo the last operation performed on the bitmap. 
  190.  
  191.  Select 
  192.         To select a part of the current bitmap. 
  193.  
  194.  Deselect 
  195.         To cancel the current selection. 
  196.  
  197.  Copy 
  198.         This copies the current selection to the clipboard. 
  199.  
  200.  Paste 
  201.         This replaces the current bitmap with the clipboard contents. 
  202.  
  203.  
  204. ΓòÉΓòÉΓòÉ 3.1. Undo ΓòÉΓòÉΓòÉ
  205.  
  206. The Undo operation undoes the last change to the bitmap. 
  207.  
  208. It is only selectable after a change has been done to the bitmap, such as those 
  209. provided under the Bitmap menu. 
  210.  
  211. In low memory situations, it may be impossible to undo a previous operation. 
  212.  
  213. Certain operations, such as New and Open are not undoable. 
  214.  
  215.  
  216. ΓòÉΓòÉΓòÉ 3.2. Select ΓòÉΓòÉΓòÉ
  217.  
  218. After choosing this menu selection, the mouse pointer changes into a 
  219. angle-bracket-L shape which you move to the bottom left of the region of the 
  220. bitmap you wish to select, and then press the left mouse button. Then it 
  221. changes to an angle-bracket-7 shape, which you then move to the top right of 
  222. the region you wish to select, and then press the left mouse button. 
  223.  
  224. This newly selected region becomes selected and is marked with a rectangle. 
  225.  
  226. This is the region that can subsequently become copied to the clipboard using 
  227. Copy. 
  228.  
  229. The Esc key cancels the selection process. 
  230.  
  231.  
  232. ΓòÉΓòÉΓòÉ 3.3. Deselect ΓòÉΓòÉΓòÉ
  233.  
  234. This menu item removes the current selection. 
  235.  
  236. You can also Deselect by pressing Esc, or by clicking the right mouse button on 
  237. the bitmap. 
  238.  
  239.  
  240. ΓòÉΓòÉΓòÉ 3.4. Copy ΓòÉΓòÉΓòÉ
  241.  
  242. If there is a current selection, then it is copied to the clipboard. 
  243.  
  244. Otherwise the whole bitmap is copied to the clipboard. 
  245.  
  246. A region can be selected using Select. 
  247.  
  248. It is the version you see on the screen that is copied to the clipboard, not 
  249. the actual original bitmap data itself. 
  250.  
  251. You can also Copy by pressing Ctrl+Ins. 
  252.  
  253.  
  254. ΓòÉΓòÉΓòÉ 3.5. Paste ΓòÉΓòÉΓòÉ
  255.  
  256. This can only occur if there is bitmap data in the clipboard. 
  257.  
  258. The current bitmap is replaced by the data from the clipboard. 
  259.  
  260. Note: Bitmap data in the clipboard is only kept to the same quality (or less) 
  261. as the screen. ie: if the screen is 8bpp (as in super VGA for example) and you 
  262. place a 24bpp bitmap in the clipboard, it is actually only held by Presentation 
  263. Manager at 8bpp. Accordingly GBM considers the pasted bitmap to be of the lower 
  264. number of bits per pixel. 
  265.  
  266. You can also Paste by pressing Shift+Ins. 
  267.  
  268.  
  269. ΓòÉΓòÉΓòÉ 4. Bitmap menu ΓòÉΓòÉΓòÉ
  270.  
  271. The Bitmap menu allows you to perform simple operations on the current bitmap. 
  272.  
  273. You can use: 
  274.  
  275.  Reflect horizontally 
  276.         To reflect the bitmap left-to-right. 
  277.  
  278.  Reflect vertically 
  279.         To reflect the bitmap left-to-right. 
  280.  
  281.  Rotate 90 degrees 
  282.         To rotate the bitmap 90 degrees anticlockwise. 
  283.  
  284.  Rotate 180 degrees 
  285.         To rotate the bitmap 180 degrees. 
  286.  
  287.  Rotate 270 degrees 
  288.         To rotate the bitmap 90 degrees clockwise. 
  289.  
  290.  Transpose x for y 
  291.         To transpose the bitmap x for y. 
  292.  
  293.  Crop to selection 
  294.         To discard all but the selected part of the bitmap. 
  295.  
  296.  Colour space... 
  297.         To map bitmap pixels / palettes between colour spaces. 
  298.  
  299.  Map... 
  300.         To map between various numbers of bits per pixel and between various 
  301.         palettes. 
  302.  
  303.  Resize... 
  304.         To change the size of, ie: to scale the current bitmap. 
  305.  
  306.  The Undo menuitem can be used to undo the last operation performed on a 
  307.  bitmap. 
  308.  
  309.  
  310. ΓòÉΓòÉΓòÉ 4.1. Reflect horizontally ΓòÉΓòÉΓòÉ
  311.  
  312. If there is a current selection, it is reflected left-to-right. 
  313.  
  314. Otherwise the whole bitmap is reflected left-to-right. 
  315.  
  316. Reflecting vertically can be done using the similar Reflect vertically 
  317. selection. 
  318.  
  319. Other operations on the bitmap can be accessed from the Bitmap menu. 
  320.  
  321.  
  322. ΓòÉΓòÉΓòÉ 4.2. Reflect vertically ΓòÉΓòÉΓòÉ
  323.  
  324. If there is a current selection, it is reflected top-to-bottom. 
  325.  
  326. Otherwise the whole bitmap is reflected top-to-bottom. 
  327.  
  328. Reflecting horizontally can be done using the similar Reflect horizontally 
  329. selection. 
  330.  
  331. Other operations on the bitmap can be accessed from the Bitmap menu. 
  332.  
  333.  
  334. ΓòÉΓòÉΓòÉ 4.3. Rotate 90 degrees ΓòÉΓòÉΓòÉ
  335.  
  336. If there is a current selection, and it is square, it can be rotated through 90 
  337. degrees clockwise. Non square selections can not be rotated through 90 degrees. 
  338.  
  339. If there is no selection, then the whole bitmap is rotated through 90 degrees. 
  340.  
  341. Other rotations may be acheived via the Rotate 180 degrees and Rotate 270 
  342. degrees commands. 
  343.  
  344. Other operations on the bitmap can be accessed from the Bitmap menu. 
  345.  
  346.  
  347. ΓòÉΓòÉΓòÉ 4.4. Rotate 180 degrees ΓòÉΓòÉΓòÉ
  348.  
  349. If there is a current selection, it is rotated through 180 degrees. 
  350.  
  351. Otherwise the whole bitmap is rotated through 180 degrees. 
  352.  
  353. Other rotations may be acheived via the Rotate 90 degrees and Rotate 270 
  354. degrees commands. 
  355.  
  356. Other operations on the bitmap can be accessed from the Bitmap menu. 
  357.  
  358.  
  359. ΓòÉΓòÉΓòÉ 4.5. Rotate 270 degrees ΓòÉΓòÉΓòÉ
  360.  
  361. If there is a current selection, and it is square, it can rotated be through 
  362. 270 degrees clockwise. Non square selections can not be rotated through 270 
  363. degrees. 
  364.  
  365. If there is no selection, then the whole bitmap is rotated through 270 degrees. 
  366.  
  367. Other rotations may be acheived via the Rotate 90 degrees and Rotate 180 
  368. degrees commands. 
  369.  
  370. Other operations on the bitmap can be accessed from the Bitmap menu. 
  371.  
  372.  
  373. ΓòÉΓòÉΓòÉ 4.6. Transpose x for y ΓòÉΓòÉΓòÉ
  374.  
  375. If there is a current selection, and it is square, it can be transposed x for 
  376. y. Non square selections can not be transposed. 
  377.  
  378. If there is no selection, then the whole bitmap is transposed. 
  379.  
  380. Other operations on the bitmap can be accessed from the Bitmap menu. 
  381.  
  382.  
  383. ΓòÉΓòÉΓòÉ 4.7. Crop to selection ΓòÉΓòÉΓòÉ
  384.  
  385. This discards all the bitmap except the selected bit. 
  386.  
  387. Other operations on the bitmap can be accessed from the Bitmap menu. 
  388.  
  389.  
  390. ΓòÉΓòÉΓòÉ 4.8. Colour space... ΓòÉΓòÉΓòÉ
  391.  
  392. This menuitem will cause the Colour space dialog to appear. From here mappings 
  393. between intensity, L* cyclometric and gamma corrected colour spaces may be 
  394. performed. 
  395.  
  396. This always applies to the whole bitmap. You cannot colour space map just the 
  397. current selection. 
  398.  
  399. Other operations on the bitmap can be accessed from the Bitmap menu. 
  400.  
  401.  
  402. ΓòÉΓòÉΓòÉ 4.9. Map... ΓòÉΓòÉΓòÉ
  403.  
  404. This menuitem will cause the Map dialog to appear. From here mappings between 
  405. various numbers of bits per pixel and various palettes may be performed. 
  406.  
  407. This always applies to the whole bitmap. You cannot map just the current 
  408. selection. 
  409.  
  410. Other operations on the bitmap can be accessed from the Bitmap menu. 
  411.  
  412.  
  413. ΓòÉΓòÉΓòÉ 4.10. Resize... ΓòÉΓòÉΓòÉ
  414.  
  415. This menuitem will cause the Resize dialog to appear. From here the size of the 
  416. current bitmap may be changed. 
  417.  
  418. This always applies to the whole bitmap. You cannot resize just the current 
  419. selection. 
  420.  
  421. Other operations on the bitmap can be accessed from the Bitmap menu. 
  422.  
  423.  
  424. ΓòÉΓòÉΓòÉ 5. View menu ΓòÉΓòÉΓòÉ
  425.  
  426. The View menu allows you to choose what representation (or view) of the bitmap 
  427. you have loaded will be used for display on the screen. 
  428.  
  429. You can use: 
  430.  
  431.  Raw PM mapping 
  432.         To tell this program to perform no image enhancment for display 
  433.         purposes. The view bitmap is displayed as good as PM will, with no 
  434.         improvement. 
  435.  
  436.  Halftoned 
  437.         To tell this program to show a halftoned version of the bitmap to the 
  438.         user, rather than the actual bitmap data itself. This generally looks 
  439.         slightly better and is quick to do. 
  440.  
  441.  Error diffused 
  442.         To tell this program to show a error-diffused version of the bitmap to 
  443.         the user, rather than the actual bitmap data itself. This generally 
  444.         looks much better, but takes longer to do. 
  445.  
  446.  This program makes a guess at the type of display adaptor you are using and 
  447.  chooses the most appropriate form of halftoning or error-diffusion to use. 
  448.  Specifically, it has algorithms known to work well on :- 
  449.  
  450.       16 colour VGA 
  451.  
  452.       256 colour 8514/A, XGA and Image Adaptor/A. 
  453.  
  454.       65536 direct colour XGA-2. 
  455.  
  456.  If you actually wish to change the bitmap data itself, then you can use the 
  457.  Map dialog to do this. 
  458.  
  459.  
  460. ΓòÉΓòÉΓòÉ 5.1. Raw PM mapping ΓòÉΓòÉΓòÉ
  461.  
  462. This tells this program to not perform any image enhancement that will make a 
  463. bitmap look closer to its true colours and shades on the screen. 
  464.  
  465. You can also select view Raw PM mapping by pressing Ctrl+R. 
  466.  
  467. It is possible to select other views from the View menu. 
  468.  
  469.  
  470. ΓòÉΓòÉΓòÉ 5.2. Halftoned ΓòÉΓòÉΓòÉ
  471.  
  472. This tells this program that it should present a halftoned view of the current 
  473. bitmap to the user. 
  474.  
  475. The actual bitmap data itself is not affected, only what you see on the screen. 
  476.  
  477. Hence if Save or Save as are used, the unchanged actual bitmap data is saved. 
  478.  
  479. Halftoning is generally quicker than error diffusion. 
  480.  
  481. You can also select view Halftoned by pressing Ctrl+H. 
  482.  
  483. It is possible to select other views from the View menu. 
  484.  
  485.  
  486. ΓòÉΓòÉΓòÉ 5.3. Error diffused ΓòÉΓòÉΓòÉ
  487.  
  488. This tells this program that it should present an error-diffused picture of the 
  489. current bitmap to the user. 
  490.  
  491. The actual bitmap data itself is not affected, only what you see on the screen. 
  492.  
  493. Hence if Save or Save as are used, the unchanged actual bitmap data is saved. 
  494.  
  495. Error diffusion takes longer than halftoning, but the quality is generally 
  496. higher, especially on continuous tone images. 
  497.  
  498. You can also select view Error diffused by pressing Ctrl+E. 
  499.  
  500. It is possible to select other views from the View menu. 
  501.  
  502.  
  503. ΓòÉΓòÉΓòÉ 6. Help menu ΓòÉΓòÉΓòÉ
  504.  
  505. Use this menu to bring up the help system. 
  506.  
  507.  
  508. ΓòÉΓòÉΓòÉ 6.1. Help for help ΓòÉΓòÉΓòÉ
  509.  
  510. Use this choice to bring up the help for the help system. 
  511.  
  512.  
  513. ΓòÉΓòÉΓòÉ 6.2. Extended Help ΓòÉΓòÉΓòÉ
  514.  
  515. Use this choice to bring up general help for GbmV2. 
  516.  
  517.  
  518. ΓòÉΓòÉΓòÉ 6.3. Keys help ΓòÉΓòÉΓòÉ
  519.  
  520. The following keys may be used in the main window :- 
  521.  
  522.      Ctrl+N selects New which clears the bitmap. 
  523.  
  524.      Ctrl+O to Open a new bitmap file via the Bitmap File dialog. 
  525.  
  526.      Ctrl+S to Save the current bitmap. 
  527.  
  528.      Ctrl+A selects Save as which saves the bitmap under a new filename, 
  529.       specified via the Bitmap File dialog. 
  530.  
  531.      Ctrl+P to Print the current bitmap. 
  532.  
  533.      Ctrl+R to select Raw PM mapping view mode. 
  534.  
  535.      Ctrl+H to select Halftoned view mode. 
  536.  
  537.      Ctrl+E to select Error diffused view mode. 
  538.  
  539.      Esc to Deselect any current selection. 
  540.  
  541.      Ctrl+Ins to Copy the current selection to the clipboard. 
  542.  
  543.      Shift+Ins to Paste the current clipboard contents over the current 
  544.       bitmap. 
  545.  
  546.      The Arrow keys may be used to scroll around the bitmap. Note that 
  547.       Shift+Arrows behave like page up/down/left or right. 
  548.  
  549.      F3 to close GbmV2. 
  550.  
  551.  
  552. ΓòÉΓòÉΓòÉ 6.4. Help index ΓòÉΓòÉΓòÉ
  553.  
  554. Use this to bring up an index of the help. 
  555.  
  556.  
  557. ΓòÉΓòÉΓòÉ 6.5. Product Information ΓòÉΓòÉΓòÉ
  558.  
  559. Use this to bring up the Product Information dialog box. 
  560.  
  561.  
  562. ΓòÉΓòÉΓòÉ 7. Product Information dialog ΓòÉΓòÉΓòÉ
  563.  
  564. This dialog box gives information on the programs version and who wrote it. 
  565.  
  566. This dialog is brought up from the Product Information menuitem. 
  567.  
  568.  
  569. ΓòÉΓòÉΓòÉ 8. Colour space dialog ΓòÉΓòÉΓòÉ
  570.  
  571. If a light is physically twice as bright, the eye does not necessarily see it 
  572. as twice as bright. Also, if a pixel is written onto a monitor screen with 
  573. twice the value, the physical intensity of the pixel is not necessarily double. 
  574.  
  575. How exactly should numbers inside a bitmap file relate to physical or perceived 
  576. intensitys when displayed on the screen? 
  577.  
  578. In OS/2 PM perceived intensitys are proportional to the values in the bitmap 
  579. file. Pixels in such a bitmap are in the L* cyclometric colour space. This is 
  580. done to ensure that an even scale of pixel values gives an even scale of 
  581. brightness, when viewed by the human eye. 
  582.  
  583. Ray Tracers often write pixel values in the bitmap proportional to the physical 
  584. intensity computed for that ray. Also this may be more suitable if certain 
  585. image processing/enhancement techniques are to be applied to the image data. 
  586. Such data is in the intensity colour space. 
  587.  
  588. Finally, if a bitmap holds values computed in such a way as to compensate for 
  589. the gamma of the monitor (ie: intensitys transformed to cancel out the gamma of 
  590. the monitor), then the data is in a gamma corrected colour space. Bitmap data 
  591. that has come directly from a greyscale or colour scanner may also be in a 
  592. gamma corrected colour space. 
  593.  
  594. Of course, despite OS/2 PM using the L* cyclometric colour space, this machine 
  595. is attached to a monitor with specific characteristics and your eyes also have 
  596. their own characteristics. But it is the responsibility of OS/2 PM screen 
  597. drivers to perform the mapping from the L* cyclometric colour space to suitable 
  598. palette entrys which take into account both the gamma (and shelf) of the 
  599. monitor in use, and the visual characteristics of the human eye. This is done 
  600. transparently to PM applications. 
  601.  
  602. The various mappings allow you map between any 2 of these 3 colour spaces. 
  603. Examples of typical usage follow :- 
  604.  
  605.  Intensity to L* cyclometric 
  606.         You have loaded a bitmap file where the pixel values are proportional 
  607.         to the physical intensity. Such bitmaps often tend to look too dark 
  608.         under OS/2 PM. This will map the pixels to the L* cyclometric colour 
  609.         space, giving a better rendition under OS/2 PM. 
  610.  
  611.  Intensity to gamma corrected 
  612.         The resulting bitmap, may still look too dark/light under OS/2 PM, but 
  613.         when saved, and displayed on a monitor with the relevant gamma and 
  614.         shelf with a program that directly controls the hardware, the correct 
  615.         rendition will result. 
  616.  
  617.  L* cyclometric to Intensity 
  618.         You have a regular OS/2 PM bitmap, and wish to make the pixel values in 
  619.         the file directly proportional to the physical intensity. You might do 
  620.         this to generate a bitmap suitable for feeding into a Ray Tracer as a 
  621.         2D texture map. 
  622.  
  623.  L* cyclometric to gamma corrected 
  624.         As above, but generating bitmap bits suitable for directly placing in 
  625.         hardware registers. 
  626.  
  627.  Gamma corrected to Intensity 
  628.         You have loaded a bitmap that has come directly from some scanner 
  629.         hardware, and wish to make bitmap where bits are proportional to 
  630.         intensity. 
  631.  
  632.  Gamma corrected to L* cyclometric 
  633.         You have loaded a bitmap from a scanner, and wish to make a bitmap best 
  634.         suited for OS/2 PM. 
  635.  
  636.  When mapping to or from the gamma corrected colour space, the gamma and shelf 
  637.  values are significant. When the gamma corrected colour space is not involved, 
  638.  the gamma and shelf parameters are greyed. For example, the gamma of the 8514 
  639.  monitor is about 2.1. 
  640.  
  641.  The shelf parameter will normally be left 0.0, but has significance for some 
  642.  monitors. For example, on some 8514 monitors, if a greyscale of bitmap pixels 
  643.  0 to 255 is displayed, the first 35 values come out equally black. So, here a 
  644.  shelf of 0.136 (as 0.136*255=35) should be used. 
  645.  
  646.  Mapping of this sort should really be done on 24 bit data, before 
  647.  error-diffusion or halftoning takes place. 
  648.  
  649.  If the current bitmap is 24 bpp, then each bitmap pixel is mapped. Otherwise, 
  650.  the palette entrys are mapped. 
  651.  
  652.  This dialog is brought up from the Colour space... menuitem. 
  653.  
  654.  
  655. ΓòÉΓòÉΓòÉ 9. Map dialog ΓòÉΓòÉΓòÉ
  656.  
  657. When the Convert pushbutton is pressed on this dialog, the current bitmap is 
  658. expanded from however many bits per pixel it currently is to 24 bits per pixel 
  659. (with no palette). 
  660.  
  661. Then a mapping is performed, to the desired number of bits per pixel and 
  662. palette specified. 
  663.  
  664. For some mappings, some or all of the values in the Values part of the dialog 
  665. box are used. Those which have no effect are greyed. 
  666.  
  667. Also, when mapping to some palettes, the option of using halftoning or error 
  668. diffusion may be available. When these are unavailable, they are greyed. 
  669.  
  670.  1bpp, black and white 
  671.         The bitmap is mapped to black and white. This is done by mapping each 
  672.         pixel to a grey value, and then seeing if the brightness is in the high 
  673.         50% or not. 
  674.  
  675.  4bpp, 8 colours 
  676.         This maps each pixel to one of black, white, red, green, blue, cyan, 
  677.         magenta or yellow. This option is handy for generating bitmaps to be 
  678.         fed into colour printers. 
  679.  
  680.  4bpp, 16 colour VGA palette 
  681.         Each pixel is mapped to a colour in the VGA palette used by DOS, 
  682.         Windows and OS/2 PM. 
  683.  
  684.  4bpp, 16 shades of grey 
  685.         Each pixel is mapped to one of 16 shades of grey. 
  686.  
  687.  8bpp, 7Rx8Gx4B palette 
  688.         This is a palette consisting of 7 levels of red, 8 levels of green and 
  689.         4 levels of blue. It is constructed this way because the eye is most 
  690.         sensitive to green, then to red, and least to blue. Most 32 bit OS/2 PM 
  691.         drivers, and the old 16 bit 8514/A driver use a palette with these 
  692.         colours in. 
  693.  
  694.  8bpp, 6Rx6Gx6B palette 
  695.         The old 16 bit XGA-1 OS/2 PM driver used a 6 red by 6 green by 6 blue 
  696.         palette. 
  697.  
  698.  8bpp, 256 shades of grey 
  699.         Each pixel is mapped to a greyscale via a weighted sum of the red, 
  700.         green and blue components. Grey = 30% red + 59% green + 11% blue. These 
  701.         correspond to the eyes relative sensitivities to these primary colours. 
  702.  
  703.  8bpp, 64R+64G+64B tri-pel palette 
  704.         The palette of the resulting bitmap has 64 shades of red, 64 of green 
  705.         and 64 of blue. Pixels in the source alternately have their red, green 
  706.         or blue component considered and a pixel written out from the relevant 
  707.         part of the palette. Therefore colour resolution is 6 bits of each of 
  708.         red, green and blue, at the expense of artifacts produced caused by the 
  709.         alternation and also at the expense of reducing the image brightness by 
  710.         a factor of 3. 
  711.  
  712.  24 bpp, keep R bits red, G green, B blue 
  713.         Although the resulting image has 24bpp, only R bits of red, G of green 
  714.         and B of blue are non-zero. XGA-2 in its 16bpp mode has 65536 colours, 
  715.         which are composed from 32 levels of red, 64 of green and 32 of blue. 
  716.         Thus R=5, G=6, B=5 can be used to transform an image into what can be 
  717.         displayed on XGA-2. 
  718.  
  719.  8bpp, as above, find N most used cols. 
  720.         After performing the above step, the 24bpp data is analysed to find the 
  721.         N most frequently occuring colours. Any pixels in the image in the N 
  722.         most used colours are mapped directly to that colour. Any pixel not in 
  723.         the N most used colours is mapped to the closest colour in the N most 
  724.         used. This may be used to make a good rendition for display by a 
  725.         program that uses VGA 320x200 8bpp mode by setting R=6, G=6, B=6, 
  726.         N=256, since only 6 bits are significant in the VGA palette DACs, and 
  727.         we only have 256 colours in the palette. 
  728.  
  729.  8bpp, median cut to N cols. 
  730.         First the image is quantised to 5 bits of red, green and blue. Then a 
  731.         palette of N colours is computed using the median cut algorithm. The 
  732.         image is mapped to this palette. For this to produce acceptable 
  733.         results, large values of N may be necessary. This may also be used to 
  734.         make a good rendition for display by a program that uses VGA 320x200 
  735.         8bpp mode by setting N=256, since we only have 256 colours in the 
  736.         palette. 
  737.  
  738.  Important 
  739.  
  740.  These mappings apply to the actual bitmap data and are nothing to do with the 
  741.  viewing options available from the View menu. Therefore, if you load a bitmap, 
  742.  error diffuse via this dialog box, and then save, the saved file is 
  743.  error-diffused. This directly contrasts the View menu, where the error 
  744.  diffusion is purely for display purposes. 
  745.  
  746.  This dialog is brought up from the Map... menuitem. 
  747.  
  748.  
  749. ΓòÉΓòÉΓòÉ 10. Resize dialog ΓòÉΓòÉΓòÉ
  750.  
  751. When the Resize pushbutton is pressed, the current bitmap is scaled to the new 
  752. size specified in the entryfields. 
  753.  
  754. This function always operates on the whole bitmap, not just the selected part 
  755. (if there is a selection). 
  756.  
  757. Expansion is done by pixel replication, and reduction is done by dropping 
  758. pixels (no photographic quality interpolation is done). 
  759.  
  760. The bitmap has other buttons to help you pick the new sizes. 
  761.  
  762. By entering a number in the N entryfield, and pressing a x N button, the width 
  763. or height can be multiplied by that number. Similarly, to scale down by a 
  764. number, use a / N button. 
  765.  
  766. The Match height and Match width buttons are designed to make it easy to pick 
  767. either the width or the height, and then work out the corresponding height or 
  768. width that will preserve the 1:1 aspect ratio. An example of the Match Width 
  769. feature :- 
  770.  
  771.       Given bitmap is currently 600x400 
  772.  
  773.       User types in 800 in the Width entryfield. 
  774.  
  775.       User presses Match Width 
  776.  
  777.       533 appears in the Height entryfield. 
  778.  
  779.  This was worked out as follows :- 
  780.  
  781.      Factor    = NewWidth / OldWidth
  782.                = 800 / 600
  783.                = 1.33 approx
  784.      NewHeight = Factor x OldHeight
  785.                = 1.33 x 400
  786.                = 533 approx
  787.  
  788.  These features are designed to avoid the need to use a calculator to work out 
  789.  the new sizes. 
  790.  
  791.  This dialog is brought up from the Resize... menuitem.