home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / pascal / 7432 < prev    next >
Encoding:
Text File  |  1992-12-13  |  1.4 KB  |  34 lines

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