home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / os2 / gbm / bin / gbmdlg.hlp (.txt) < prev    next >
Encoding:
OS/2 Help File  |  1994-04-28  |  21.1 KB  |  651 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Bitmap File dialog ΓòÉΓòÉΓòÉ
  3.  
  4. This dialog allows you to load a bitmap from a file, or save a bitmap to a 
  5. file. Filenames and directories may be selected from the listboxes via the 
  6. keyboard or the mouse, just like in any other File dialog. 
  7.  
  8. You can handle bitmap files of a variety of different formats. For example, 
  9. OS/2 Bitmaps, CompuServe GIF files, ZSoft PCX files and many others. 
  10.  
  11. To see an extensive list of the level of support for the various bitmap 
  12. formats, and the format specific options available in each, see the Bitmap file 
  13. format support section of this help. 
  14.  
  15. You can select which files are listed in the files listbox using the File type 
  16. combo box. You can pick, <All files>, <All GBM supported files> and various 
  17. <Format>s. 
  18.  
  19. The program will look at the file extension and determine the format of the 
  20. file and use the relevant bitmap file handling code. 
  21.  
  22. The Optional bitmap format specific options field allows you to specify a 
  23. string which is used to give hints to the relevant bitmap file handling code. 
  24. For example, you can tell the GIF file reader to ignore corrupt data and return 
  25. how far it got by giving the "errok" option. 
  26.  
  27.  
  28. ΓòÉΓòÉΓòÉ 2. Bitmap file format support ΓòÉΓòÉΓòÉ
  29.  
  30. This program uses the Generalised Bitmap Module. This peice of code can read 
  31. and write a variety of bitmap formats. The application program is unaware of 
  32. the file format of any bitmaps, and is just presented with the bitmap data in a 
  33. single standard way. 
  34.  
  35. Some bitmap formats allow additional options to be supplied and these options 
  36. are listed highlighted like this. 
  37.  
  38. This section fully defines the level of support :- 
  39.  
  40. Formats supported are : 
  41.  
  42. OS/2 / Windows Bitmap 
  43.  
  44. CompuServe Graphics Interchange Format 
  45.  
  46. ZSoft PC Paintbrush Image Format 
  47.  
  48. Microsoft/Aldus Tagged Image File Format 
  49.  
  50. Truevision Targa/Vista 
  51.  
  52. Amiga IFF / ILBM Interleaved bitmap format 
  53.  
  54. YUV12C M-Motion Frame Buffer 
  55.  
  56. Portable Greyscale-map 
  57.  
  58. Portable Pixel-map 
  59.  
  60. IBM KIPS 
  61.  
  62. IBM Image Access eXecutive 
  63.  
  64. X Windows bitmap 
  65.  
  66. RiscOS Sprite 
  67.  
  68. Others 
  69.  
  70. The Bitmap File Dialog can handle bitmaps in any of the formats documented 
  71. above. 
  72.  
  73.  
  74. ΓòÉΓòÉΓòÉ 2.1. OS/2 / Windows bitmap ΓòÉΓòÉΓòÉ
  75.  
  76. The following file extensions 
  77.  
  78.   .BMP .VGA .BGA .RLE .DIB .RL4 .RL8
  79.  
  80. are recognised as OS/2 1.1, 1.2, 2.0 or Windows 3.0 bitmaps. 
  81.  
  82. Input 
  83.  
  84. The bitmap support will read any of the above if uncompressed or run-length 
  85. compressed. 
  86.  
  87. CCITT G3 MH Fax compressed files, or RLE24 compressed files can't be read. 
  88.  
  89. index=N 
  90.        Can be used if the file is an OS/2 bitmap-array file to specify which 
  91.        bitmap in the array to read (default N=0 - the first in the array). 
  92. inv 
  93.        Causes the palette to get inverted after reading. Provided to allow for 
  94.        inconsistencies between Windows and OS/2 programs in how the palette of 
  95.        1bpp files should be interpreted. 
  96. invb 
  97.        Causes the bitmap bits to get inverted after reading. 
  98.  
  99. Output 
  100.  
  101. The this module can write both OS/2 1.1 and OS/2 2.0 / Windows 3.0 style 
  102. bitmaps. 
  103.  
  104. By default OS/2 2.0 or Windows 3.0 bitmaps are written. This has changed since 
  105. previous releases. 
  106.  
  107. The OS/2 2.0 / Windows 3.0 style of bitmaps written are written with a header 
  108. size (cbFix) of 40, which is compatible with both Windows 3.0 and OS/2 2.0. 
  109.  
  110. 1.1 
  111.        Causes the bitmap to be written OS/2 1.1 style. 
  112. 2.0 or win 
  113.        Causes the bitmap to be written OS/2 2.0 / Windows 3.0 style. 
  114. inv 
  115.        Causes the palette to get inverted before written. Provided to allow for 
  116.        inconsistencies between Windows and OS/2 programs in how the palette of 
  117.        1bpp files should be interpreted. 
  118. invb 
  119.        Causes the bitmap bits to get inverted before written. 
  120.  
  121. The newer MultiMedia Windows bitmap format that allows 16 and 32 bpp support is 
  122. not currently supported. 
  123.  
  124. The Bitmap file format support help panel lists other supported file formats. 
  125.  
  126.  
  127. ΓòÉΓòÉΓòÉ 2.2. CompuServe Graphics Interchange Format ΓòÉΓòÉΓòÉ
  128.  
  129. The .GIF file extension is recognised as a GIF file. 
  130.  
  131. Input 
  132.  
  133. 1 bpp GIF files are read as 1 bpp data. 
  134.  
  135. 2, 3 and 4 bit GIF files are read and returned as 4 bpp data. 
  136.  
  137. 5, 6, 7 and 8 bit GIF files are read and returned as 8 bpp data. 
  138.  
  139. GIF files provide no support for 24 bpp images. 
  140.  
  141. Both GIF87a and GIF89a level files may be read. 
  142.  
  143. The code will correctly handle deferred clear-codes in the LZW data stream. 
  144. Files with these often break earlier programs that claim to load GIF files. 
  145.  
  146. index=N 
  147.        Can be used to specify which image in the GIF file to read (default 
  148.        N=0). 
  149. errok 
  150.        If a corrupted or truncated GIF file is encountered, normally an error 
  151.        is returned. With this option, as much data as was decoded before the 
  152.        error is returned, and no error occurs. 
  153.  
  154. Output 
  155.  
  156. The GIF87a style of GIF files are written, and since the GIF standard is 
  157. backwardly compatible, all programs that claim to load GIF files should handle 
  158. the output generated by this program. 
  159.  
  160. This program does not generate GIF files with deferred-clear-codes, as these 
  161. have been shown to break many older GIF readers. 
  162.  
  163. xscreen=N,yscreen=N 
  164.        Specifies what values to put in these fields of the GIF file header. The 
  165.        default is the image size. 
  166. background=N 
  167.        Specifies what background colour index to write in the GIF file header. 
  168.        The default is 0. 
  169. xpos=N,ypos=N 
  170.        Specifies what values to put in these fields in the GIF file header. The 
  171.        defaults are 0 and 0. 
  172.  
  173. This code correctly handles 1bpp GIF files. Some programs make incorrect 
  174. assumptions about the initial LZW code table size in the 1bpp case, and so fall 
  175. over. UBU is guilty of this. 
  176.  
  177. This code has been tested on a selection of files from IBM internal ftp 
  178. fileservers starbase1.austin.ibm.com and depeter.almaden.ibm.com, many Internet 
  179. ftp fileservers, output of public domain PPMTOGIF.EXE, and tested for 
  180. compatibility with UNIX X Windows xloadimage and xv. 
  181.  
  182. The Bitmap file format support help panel lists other supported file formats. 
  183.  
  184. GIF and 'Graphics Interchange Format' are trademarks (tm) of Compuserve, 
  185. Incorporated, an H&R Block Company. 
  186.  
  187.  
  188. ΓòÉΓòÉΓòÉ 2.3. ZSoft PC Paintbrush Image Format ΓòÉΓòÉΓòÉ
  189.  
  190. The .PCX file extension is recognised as a Paintbrush file. 
  191.  
  192. Only a subset of the possible planes/bits-per-plane combinations are supported. 
  193.  
  194. Input 
  195.  
  196. This program reads 1,4,8 and 24 bpp files. 
  197.  
  198. The run-length encoding scheme is supported. 
  199.  
  200. Compressed runs of pixels are not supposed to straddle scan lines. Some other 
  201. applications violate this rule. By default, if this code finds that a run of 
  202. pixels is longer than the scan line, it will use the leftover pixels on the 
  203. next scan line. Some images will not load properly, as they require the loading 
  204. program to discard those pixels in the run that extend beyond the end of the 
  205. scan line. This behaviour can be enabled using the trunc option. 
  206.  
  207. Output 
  208.  
  209. This program writes 1,4,8 and 24 bpp files, using run-length compression. 
  210.  
  211. It will always ensure run-lengths of pixels do not straddle scan lines. 
  212.  
  213. This code has been tested on some PC Paintbrush originated .PCX files. 
  214.  
  215. The Bitmap file format support help panel lists other supported file formats. 
  216.  
  217.  
  218. ΓòÉΓòÉΓòÉ 2.4. Microsoft/Aldus Tagged Image File Format ΓòÉΓòÉΓòÉ
  219.  
  220. The .TIF file extension is recognised as a TIFF file. 
  221.  
  222. There is support to handle 1,4,8 and 24 bpp files. 
  223.  
  224. Input 
  225.  
  226. This program reads uncompressed, Packbits and LZW compressed files. 
  227.  
  228. This code will read all Baseline TIFF 6.0 files, except CCITT Modified Huffman 
  229. encoded bi-level files. 
  230.  
  231. index=N 
  232.        Can be used if the file contains more than one image to specify which 
  233.        image to read (default N=0 - the first). 
  234.  
  235. Output 
  236.  
  237. This program writes uncompressed data only. 
  238.  
  239. Data are written in a single large strip. 
  240.  
  241. Files written by this code are Baseline TIFF 6.0 compliant. 
  242.  
  243. artist=TEXT 
  244.        Causes an Artist tag to be added with text TEXT. 
  245. software=TEXT 
  246.        Causes the Software tag to be added with text TEXT. The default Software 
  247.        tag to be added if none is specified is Generalised Bitmap Module. 
  248. make=TEXT 
  249.        Causes the Make tag to be added with text TEXT. 
  250. model=TEXT 
  251.        Causes the Model tag to be added with text TEXT. 
  252. host=TEXT 
  253.        Causes the Host tag to be added with text TEXT. 
  254. documentname=TEXT 
  255.        Causes the DocumentName tag to be added with text TEXT. 
  256. pagename=TEXT 
  257.        Causes the PageName tag to be added with text TEXT. 
  258. imagedescription=TEXT 
  259.        Causes the ImageDescription tag to be added with text TEXT. 
  260. pal1bpp 
  261.        Causes 1 bpp data to be written as a palettised file, with 2 palette 
  262.        entries. Technically this is not TIFF 6.0 Baseline compliant. The 
  263.        default is to write out a bi-level file with the brightest colour as 
  264.        white. This is Baseline compliant. 
  265.  
  266. The TEXT should not include spaces. 
  267.  
  268. There are 2 well known corruptions of the TIFF format. 
  269.  
  270. Some TIFF writers write the ColorMap tags length to be 2^N, whereas it should 
  271. be 3*2^N. This code will detect this tag having a bad length, and correct for 
  272. it transparently. UBU is/was guilty of this. 
  273.  
  274. Some TIFF readers/writers believe that ColorMap entrys are bytes. In fact they 
  275. are words. When reading TIFF files, if this code finds that all the palette 
  276. entrys are in the range 0-255, as opposed to 0-65535, then it multiplys them 
  277. all by 256, thus transparently overcoming the problem. When writing TIFF files, 
  278. this code writes the 8 bit palette entry in both the low and high bytes of the 
  279. tag. Thus programs that look at the high byte work fine. Programs that use the 
  280. full word work fine (the colours get 0.5% brighter). Programs that incorrectly 
  281. look at the bottom byte work fine too. At least one version of IBM OS/2 Image 
  282. Support is/was guilty of this. 
  283.  
  284. JPEG compressed data, and data in the Y-Cb-Cr colour space is not supported. 
  285.  
  286. CCITT G3 Modified Huffman / Facsimile compressed data is not supported. 
  287.  
  288. The Bitmap file format support help panel lists other supported file formats. 
  289.  
  290.  
  291. ΓòÉΓòÉΓòÉ 2.5. Truevision Targa/Vista bitmap ΓòÉΓòÉΓòÉ
  292.  
  293. The following file extensions 
  294.  
  295.   .TGA .VST .AFI
  296.  
  297. are recognised as Targa/Vista files. 
  298.  
  299. This handles the uncompressed Targa/Vista formats. 
  300.  
  301. This code only supports 8 bpp and 24 bpp images. 
  302.  
  303. Input 
  304.  
  305. This code will read files with both top-left-origin and bottom-left-origin. Not 
  306. all Targa readers correctly handle bottom-left-origin files. 
  307.  
  308. When reading 16 bpp files (which are 5 red + 5 green + 5 blue + 1 alpha), they 
  309. are loaded and presented as 24 bpp bitmaps with only the top 5 bits of each of 
  310. the 8 bit bytes valid. The bottom 3 bits are zero. 
  311.  
  312. When reading 32 bpp files (which are 8 red + 8 green + 8 blue + 8 alpha), the 
  313. alpha channel is ignored. 
  314.  
  315. Output 
  316.  
  317. yup and ydown 
  318.        Causes the data to be written in bottom-left-origin or top-left-origin 
  319.        form. The default is bottom-left-origin. 
  320. 16 
  321.        If the data is 24 bpp, then the 16 flag causes only the most significant 
  322.        5 bits of the red, green and blue to be written in a 16 bit pixel. 
  323. 24 
  324.        Has no effect, as this is the default. 
  325. 32 
  326.        If the data is 24 bpp, then the 32 flag causes the data to be padded 
  327.        with 8 zero bits of alpha channel to make a 32 bit pixel. 
  328.  
  329. The Bitmap file format support help panel lists other supported file formats. 
  330.  
  331.  
  332. ΓòÉΓòÉΓòÉ 2.6. Amiga IFF / ILBM Interleaved bitmap format ΓòÉΓòÉΓòÉ
  333.  
  334. The following file extensions 
  335.  
  336.   .IFF .LBM
  337.  
  338. are recognised as interleaved bitmap files. 
  339.  
  340. Normally ILBM files are 1,2,3,4 or 5 bpp, because the early Amigas supported 
  341. upto 32 colours at once. 6,7 and 8 bpp files are also found nowadays too. 
  342.  
  343. Extra-HalfBrite, or EHB is a mode where N colours have palette entries, but the 
  344. file may contain 2*N colours. The second set of N colours are half the 
  345. brightness of the first half. In this way, for example, 64 colours may be 
  346. displayed on an early Amiga. 
  347.  
  348. Hold-And-Modify, or HAM is a type of screen format where each pixel is either 
  349. one of a small number of colours in a palette, or is held the same as the pixel 
  350. to its left except that either the red, green or blue is modified. In this way 
  351. a much larger range of colours can be displayed. 
  352.  
  353. HAM modes sometimes have fringes down the vertical edges of shapes in the 
  354. picture, as sometimes it is necessary to modify the lefthand pixel several 
  355. times to get to the desired colour, if a suitable entry is not in the palette. 
  356.  
  357. HAM6 is a HAM mode where there are 16 base palette entries and a possible 
  358. maximum of 4096 colours. This is found on early Amigas. 
  359.  
  360. HAM8 is a HAM mode where there are 64 base palette entries and a full 24 bit 
  361. range of colours. Also because of the larger palette, fringing is less than in 
  362. HAM6. This mode is present on later Amigas. 
  363.  
  364. Sliced-Hold-And-Modify, or SHAM is a mode where the palette is changed on every 
  365. (or every other) scan line. This also helps reduce fringing compared to normal 
  366. HAM6. SHAM is actually sliced HAM6, and might really be called SHAM6, and SHAM8 
  367. is not known to exist. 
  368.  
  369. Input 
  370.  
  371. This code can read files that contain uncompressed or RLE compressed data. 
  372.  
  373. 1 bpp files can be read ok. 
  374.  
  375. 2,3 and 4 bpp files are read and returned as 4 bpp data. 
  376.  
  377. 5,6,7 and 8 bpp files are read and returned as 8 bpp data. 
  378.  
  379. EHB images can be read and are returned as 8 bpp data. 
  380.  
  381. HAM6, HAM8 and SHAM files can be read and are returned as 24 bpp data. 
  382.  
  383. Only the BMHD, CMAP, CAMG and BODY chunks are used when reading the file. 
  384.  
  385. Output 
  386.  
  387. This code can write 1, 4 and 8 bpp files. 
  388.  
  389. 24 bpp files can be written also, this code performs a mapping to HAM6 before 
  390. writing to the file. This loses quality, but, is still better than a normal 8 
  391. bpp file. 
  392.  
  393. This code writes RLE compressed data, as this usually results in much smaller 
  394. files. 
  395.  
  396. Only the BMHD, CMAP and BODY chunks are written to the file. When writing HAM 
  397. data, a CAMG chunk is written also. 
  398.  
  399. You can optionally override parts of the BMHD header. 
  400.  
  401. xpos=N,ypos=N 
  402.        Overrides the origin information in the file. Defaults are 0,0. 
  403. transcol=N 
  404.        Overrides the transparent colour field. Default is 0. 
  405. xaspect=N,yaspect=N 
  406.        Overrides the aspect ratio information. Defaults are 1,1. This header 
  407.        information is not always honored by ILBM readers. 
  408. xscreen=N,yscreen=N 
  409.        Overrides the screen size information. This is not often used by ILBM 
  410.        readers. The default is the image size. 
  411.  
  412. Note that when some early programs try to load an >5 bpp ILBM file, they can 
  413. switch to a 32 colour (5 bpp mode) and only read the 5 least significant planes 
  414. of the file. This generally looks bad. 
  415.  
  416. This support has been tested using a large range of sample files. But, some 
  417. sample files supplied to the author have yet to be loaded. In particular some 
  418. (24bpp?) DCTV originated files are not yet understood. 
  419.  
  420. The Bitmap file format support help panel lists other supported file formats. 
  421.  
  422.  
  423. ΓòÉΓòÉΓòÉ 2.7. YUV12C M-Motion Frame Buffer ΓòÉΓòÉΓòÉ
  424.  
  425. The .VID file extension is recognised as a YUV12C file. 
  426.  
  427. Although YUV12C files contain 12 bit YUV encoded colour image data, this code 
  428. pretends they contain 24 bit RGB encoded colour data. 
  429.  
  430. Input 
  431.  
  432. The files are converted from YUV to RGB data before the data is presented to 
  433. the program. 
  434.  
  435. Output 
  436.  
  437. The RGB data is converted to YUV when it is written to disk. 
  438.  
  439. YUV12C files must be a multiple of 4 pixels wide. When trying to write a bitmap 
  440. that is not a multiple of 4 pixels wide, this code truncates the last 1, 2 or 3 
  441. pixels left over. 
  442.  
  443. xpos=N,ypos=N 
  444.        Overrides the origin information in the file. Defaults are 0,0. 
  445.  
  446. This support has been tested using the M-Control Program 2.0, Browser sample 
  447. application. 
  448.  
  449. The Bitmap file format support help panel lists other supported file formats. 
  450.  
  451.  
  452. ΓòÉΓòÉΓòÉ 2.8. Portable Greyscale-map ΓòÉΓòÉΓòÉ
  453.  
  454. The .PGM file extension is recognised as a Greymap file. 
  455.  
  456. Credit for file format to Jef Poskanzer. 
  457.  
  458. Only the Binary P5 form of this format is supported. 
  459.  
  460. These files hold no palette information. 
  461.  
  462. Input 
  463.  
  464. The files are returned as an 8 bit image usually with a greyscale palette. 
  465.  
  466. r,g,b or k 
  467.        Forces the image to be read as shades of red, green, blue or grey (the 
  468.        default). 
  469.  
  470. Output 
  471.  
  472. Normally 8 bpp image data as the greyscale equivelent of the bitmap data. 
  473.  
  474. r,g,b or k 
  475.        Forces the red,green or blue component of the image to be written, or 
  476.        alternatively to write the greyscale equivelent (the default). 
  477.  
  478. The Bitmap file format support help panel lists other supported file formats. 
  479.  
  480.  
  481. ΓòÉΓòÉΓòÉ 2.9. Portable Pixel-map ΓòÉΓòÉΓòÉ
  482.  
  483. The .PPM file extension is recognised as a Pixel-map file. 
  484.  
  485. Credit for file format to Jef Poskanzer. 
  486.  
  487. Only the Binary P6 form of this format is supported. 
  488.  
  489. The Portable Pixel-map format is only capable of holding 24 bpp RGB data, and 
  490. this code fully supports this. 
  491.  
  492. The Bitmap file format support help panel lists other supported file formats. 
  493.  
  494.  
  495. ΓòÉΓòÉΓòÉ 2.10. IBM KIPS ΓòÉΓòÉΓòÉ
  496.  
  497. The .KPS file extension is recognised as a Pixel-map file. 
  498.  
  499. The .KPS file is not enough to define a KIPS image. 
  500.  
  501. The palette is stored in either an associated .PAL or .KPL file. 
  502.  
  503. Input 
  504.  
  505. pal or kpl 
  506.        Tells this code to look for a .PAL or a .KPL file to find the palette 
  507.        (default is .PAL) 
  508.  
  509. Output 
  510.  
  511. pal or kpl 
  512.        Tells this code to write  a .PAL or a .KPL file containing the palette. 
  513.        (default is .PAL) 
  514.  
  515. The Bitmap file format support help panel lists other supported file formats. 
  516.  
  517.  
  518. ΓòÉΓòÉΓòÉ 2.11. IBM Image Access eXecutive ΓòÉΓòÉΓòÉ
  519.  
  520. The .IAX file extension is recognised as a IAX file. 
  521.  
  522. This image format does not include a palette or a file header. In particular, 
  523. the image file size cannot be determined from the file! This code assumes an 
  524. image width of 512 pixels, and determines the image height by dividing the file 
  525. size by the width. 
  526.  
  527. The data is presented as a greyscale. 
  528.  
  529. Input 
  530.  
  531. r,g,b or k 
  532.        Forces the image to be read as shades of red, green, blue or grey (the 
  533.        default). 
  534. width=N 
  535.        Overrides the default assumption that the image width is 512 pixels. 
  536.  
  537. Output 
  538.  
  539. Normally 8 bpp image data as the greyscale equivelent of the bitmap data. 
  540.  
  541. r,g,b or k 
  542.        Forces the red,green or blue component of the image to be written, or 
  543.        alternatively to write the greyscale equivelent (the default). 
  544.  
  545. The Bitmap file format support help panel lists other supported file formats. 
  546.  
  547.  
  548. ΓòÉΓòÉΓòÉ 2.12. X Windows Bitmap ΓòÉΓòÉΓòÉ
  549.  
  550. The .XBM file extension is recognised as a X Bitmap file. 
  551.  
  552. X Bitmap files are ASCII text files, that look to be directly source 
  553. include-able in C programs. 
  554.  
  555. This program is very generous in its parsing of the files. 
  556.  
  557. This program supports X10 and X11 1bpp bitmaps. Some .XBM files with text 
  558. strings inside have been encountered. These looked to be sprites or icons and 
  559. are not supported. 
  560.  
  561. When reading X Bitmaps, 1's are returned as black, 0's as white. 
  562.  
  563. When writing X bitmaps, the darkest colour is written as 1's, the lightest as 
  564. 0's. 
  565.  
  566. This code has been tested on some .XBM files obtained from IBM internal ftp 
  567. fileserver spock.hursley.ibm.com 
  568.  
  569. The Bitmap file format support help panel lists other supported file formats. 
  570.  
  571.  
  572. ΓòÉΓòÉΓòÉ 2.13. RiscOS Sprite ΓòÉΓòÉΓòÉ
  573.  
  574. The .SPR file extension is recognised as a RiscOS sprite file. Technically, due 
  575. to the way the RiscOS works, files don't have extensions. But for convenience, 
  576. I have arbitrarily said .SPR, to allow sprites to fit in with all the other 
  577. image formats. 
  578.  
  579. Input 
  580.  
  581. This code will read 1,2,4 and 8 bpp files. 2bpp files will be expanded to 4bpp 
  582. on reading. 
  583.  
  584. Sprite files can contain an image, or an image and a mask plane. This code will 
  585. ignore the mask plane. 
  586.  
  587. If no palette is present in the file, GBM will assume a default palette similar 
  588. to that used by the RiscOS Wimp. 
  589.  
  590. There is a limitation in that the first-bit field of the sprite header must be 
  591. a multiple of 8 (highly likely). 
  592.  
  593. index=N 
  594.        Can be used if the file contains more than one sprite to specify which 
  595.        sprite in the file to read (default N=0 - the first in the file). 
  596.  
  597. Output 
  598.  
  599. This code will write 1,4 and 8bpp files. 
  600.  
  601. A palette will be written into the file. 
  602.  
  603. Only the image plane is written, ie: no mask plane. 
  604.  
  605. When outputting 8bpp bitmaps, the usual wierd Archimedes palette is written and 
  606. the bitmap data is mapped to this palette. This is because the Archimedes 
  607. cannot support arbitrary 256 colour palettes. The VIDC chip only has 16 palette 
  608. registers, with 16 fixed overrides on (or shades of) each. 
  609.  
  610. GBM writes 16 palette entries to the file. Sprite files can be found with 64 
  611. palette entries (with 4 overrides on each). However, it is seen that these 64 
  612. palette entries are actually just 16 entries with the 4 overrides on each. 
  613. Hence this is equivelent to 16 entries with 16 overrides, except some of the 
  614. overrides are explicitly stored in the file. 
  615.  
  616. Tested reading 4bpp sprites with no palette. 
  617.  
  618. Tested reading 8bpp sprites with no palette and with 64 entry palette. 
  619.  
  620. Sprites generated by GBM have been loaded on RiscOS. Remember: Use SetType to 
  621. change type of file from PC-file to Sprite, by SetType option of filer menu or 
  622. "*SetType <filename> Sprite". 
  623.  
  624. The Bitmap file format support help panel lists other supported file formats. 
  625.  
  626.  
  627. ΓòÉΓòÉΓòÉ 2.14. Others ΓòÉΓòÉΓòÉ
  628.  
  629. Support for all the bitmap file formats may be added at any time, without 
  630. application writers being aware of it. 
  631.  
  632. Any new formats will be listed in the dialog filetype combobox, although the 
  633. help may not (yet) have an entry for them. 
  634.  
  635. The Bitmap file format support help panel lists other supported file formats. 
  636.  
  637.  
  638. ΓòÉΓòÉΓòÉ 3. Bitmap File format Credits ΓòÉΓòÉΓòÉ
  639.  
  640. This code is the work of :- 
  641.  
  642.  
  643. {{{ Andy Key
  644.  
  645. Internet: ak@vnet.ibm.com
  646. IBM-VNET: AKEY AT HVTVM5
  647.  
  648. Electronic addresses valid at least until 31st December 1993. 
  649.  
  650. I would like to thank all the numerous people who have helped by providing 
  651. sample bitmap files and file specifications.