home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / FAQSYS18.ZIP / FAQS.DAT / IMG.DOC < prev    next >
Text File  |  1995-12-30  |  1KB  |  36 lines

  1.  
  2. IPAS 3 Demo
  3. IMG.BXP
  4.  
  5. by Tom Hudson
  6. 9/21/93
  7.  
  8.  
  9. This IPAS III process is a simple bitmap I/O demonstration.  It reads and
  10. writes simple, uncompressed 24-bit truecolor image files with additional
  11. information on gamma, aspect ratio and so on.
  12.  
  13. When placed in the PROCESS-PATH directory, this process is automatically
  14. called by 3DS whenever the user requests a file with an .IMG extension.
  15.  
  16. The .IMG file format is:
  17.  
  18. Pos      Length    Description
  19. -----    ------    -------------------------------------
  20. 0        4        Magic number (FC6B8A2F)
  21. 4        4        Width in pixels (integer)
  22. 8        4        Height in pixels (integer)
  23. 12        4        Alpha flag (0=No alpha, 1=alpha) (Integer)
  24. 16        4        Aspect ratio (float)
  25. 20        4        Gamma (float)
  26. 24        77        Description line 1, 76 chars + NULL termination
  27. 101        77        Description line 2, 76 chars + NULL termination
  28. 178        77        Description line 3, 76 chars + NULL termination
  29. 255        77        Description line 4, 76 chars + NULL termination
  30. 332        ????    Image data (width*height*3 bytes, RGB order) (unsigned char)
  31. ????    ????    Alpha data, if alpha flag nonzero (width*height bytes)
  32.                 (unsigned char)
  33.  
  34. End of document.
  35.  
  36.