home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / pocketbk / developmen / oplexamp / PICFMT.TXT < prev    next >
Text File  |  1993-07-15  |  1KB  |  49 lines

  1. ==========
  2. psion/sibosdk #347, from psion_c, 1174 chars, Jul 14 17:26 93
  3. Comment to 337. Comments. 
  4. ----------
  5. The info. as promised, sorry it's late:
  6.  
  7.   The format  of Window  Server '.PIC' bitmap files as used on
  8.   the SIBO range of machines is as follows:
  9.   
  10.      struct
  11.        {
  12.        TEXT app_id[3] = 'PIC';            /* Application ID */
  13.        UBYTE  chk = 'P' + 'I' + 'C';            /* ID check */
  14.        UBYTE  file_vn = 0x30;               /* File version */
  15.        UBYTE  app_vn  = 0x30;        /* Application version */
  16.        UWORD  count;           /* Number of bitmaps in file */
  17.      
  18.        struct
  19.          {
  20.          UWORD  checksum;
  21.          UWORD  width;
  22.          UWORD  height;
  23.          UWORD  byte_size;          /* Size of picture data */
  24.          ULONG  offset;       /* From end of header to data */
  25.          } [count]
  26.          {
  27.          .
  28.          .
  29.          .
  30.          picture data - simple pattern of 0s and 1s with
  31.          no compression mapping directly to on-screen image
  32.          .
  33.          .
  34.          .
  35.          } [count];
  36.        }
  37.      
  38.   The checksum is calculated separately for each bitmap in the
  39.   '.PIC' file  using the  PLIB function  'p_crc()'. The header
  40.   data is not included in the calculation.
  41.  
  42.   All the best,
  43.  
  44.  Ali (psion_c)
  45.  
  46.   
  47.   
  48.  
  49.