home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!mp.cs.niu.edu!jeffbyrn
- From: jeffbyrn@mp.cs.niu.edu (Jeff Byrne)
- Subject: Re: getimage
- Message-ID: <1992Dec13.222135.16348@mp.cs.niu.edu>
- Organization: Northern Illinois University
- References: <4161.1250.uupcb@compart.fi>
- Date: Sun, 13 Dec 1992 22:21:35 GMT
- Lines: 23
-
- In article <4161.1250.uupcb@compart.fi> jarmo.aho@compart.fi (Jarmo Aho) writes:
- >
- >DJ> I am busy with a small game woith some simple graphics.
- >DJ> I found out what the format is of a (TP) getimage BMP but I don't
- >DJ> know what the meaning is of the last word. Could anyone tell me ?
- >
- >
- > If yoy are talking about 16 color mode, then that last word is
- > meaningless. I have found that ImageSize doesn't compute imagesize
- > quite correctly. It gives two bytes (that last word) too much.
- > That is not very serious, but in 256 color graphics mode it's
- > worse. For example ImageSize(0,0,30,30) gives 998. Correct value
- > is 965.
- ( Function deleted )
-
- Hi,
-
- In the on-line help for TP7 it says that the buffer size is computed by
- adding 6 bytes to the bitmap size. The first two words are for the image
- width and height. It says that the third word is reserved. It doesn't say
- where the third word is located in the file. I guess at the end. I don't
- remember what the docs said for TP6. Maybe Borland is planning ahead.
- - Jeff
-