home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10461 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.1 KB  |  32 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!milton!skipa
  3. From: skipa@milton.u.washington.edu (Skip Albertson)
  4. Subject: HELP: Opening & Reading Bitmap (*.BMP) Files?
  5. Message-ID: <skipa.721401993@milton>
  6. Summary: HELP: Opening & Reading Bitmap (*.BMP) files?
  7. Keywords: HELP, BITMAP, *.BMP
  8. Sender: news@u.washington.edu (USENET News System)
  9. Organization: University of Washington
  10. Date: Tue, 10 Nov 1992 13:26:33 GMT
  11. Lines: 19
  12.  
  13. I would like to open a windows bitmapped-file (*.BMP)
  14. from Paintbrush for Windows (16(?) color, VGA screen)
  15. and load the color-values, pixel-by-pixel, into an array.
  16. I would like the final integer array to consist of numbers
  17. like: 1, 16, 16, 2, 2, 2, 5 ..... etc. so that each represents
  18. the total (RGB) color present at each pixel.  I'm writing code
  19. in FORTRAN although QBASIC or C suggestions would be helpful
  20. as well.
  21.  
  22. Why is it so hard to find structure info on *.BMP files?
  23.  
  24. OPEN (7, status='old', mode='binary',file='image.bmp')
  25. read(7,100)
  26. 100  format (???????)
  27.  
  28. Thanks in advance for your help!
  29.  
  30. alberts@apl-em.apl.washington.edu
  31.  
  32.