🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #913

Getting a bitmap from a file.

#913
From: Paul C. David
Date: Tue, 18 Dec 1990 09:01
29 lines
1294 bytes


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
Technical Details
Message-ID: <276ddade.933@petunia.CalPoly.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!jarthur!petunia!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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