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