Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!jarthur!petunia!news From: pdavid@polyslo.CalPoly.EDU (Paul C. David) Newsgroups: comp.windows.ms.programmer Subject: Getting a bitmap from a file. Message-ID: <276ddade.933@petunia.CalPoly.EDU> Date: 18 Dec 90 09:01:18 GMT Distribution: all Organization: Cal Poly State University SLO Lines: 29 I want to read a bitmap from a file, without declaring a resource name in the *.rc file. What is the file format that I can expect? I thought that it would be something like this : BITMAPFILEHEADER structure. BITMAPINFO structure w/ a BITMAPINFOHEADER structure as a member. BITMAP bits. The data that I can read is inconsistant. For some BMP files I can read the width and height, but not the # of planes or bits per pixel. For others, I can't even read the height and width correctly. I *must* be forgetting something. Can anyone help me out with a code fragment, or a file format specification? Please reply via e-mail, I will forward this to anyone who requests it. Thanks, Paul. -- Paul C. David pdavid@polyslo.CalPoly.EDU California Polytechic State University, San Luis Obispo Home of the six year or 60,000 mile undergrad degree