home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / pascal / 6546 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  3.0 KB

  1. Path: sparky!uunet!ornl!utkcs2!darwin.sura.net!dtix!relay!relay2!afterlife!adm!news
  2. From: ELS-MIMO@risoe.dk (Mikael Lindberg Mortensen)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: tp graphics
  5. Message-ID: <34031@adm.brl.mil>
  6. Date: 11 Nov 92 09:48:13 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 64
  9.  
  10. > From:       NOWINSKI A - OPTOMETRY <nowinski@watserv1.uwaterloo.ca>
  11. > Subject:    tp graphics
  12. > Date:       9 Nov 92 19:40:09 GMT
  13. > To:         info-pascal@BRL.MIL
  14.  
  15. >
  16. > Subject : Help needed for Graphics in Turbo Pascal 6.
  17. >
  18. > Hi,
  19. >   my name is Jack Nowinski. I have some trouble with graphics in
  20. > Turbo Pascal, I have three questions. I would really appreciate
  21. > some help with this.
  22. >
  23. > 1) I want a picture that has the PCX or GIF extension to show up
  24. >    on my graphics screen, and in any screen resolution I want
  25. >    i.e. (320x200x256, 640x480x16 etc). I also want the
  26. >    picture to show up in a flash, instead of a slow fade.
  27. >
  28. > 2) I would like to have people walk in the background without
  29. >    changing color or leaving black blocks behind. When I draw a
  30. >    person in Turbo Pascal, and I put them to screen using
  31. >    PutImage() after I put my character to a new position the old
  32. >    position my person was on will have a black square, is there a
  33. >    way to get rid of the black square on the old position and
  34. >    make it look like my character is on a separate foreground
  35. >    than the background, so what goes on in the foreground will
  36. >    not change what happens in the background, or when I want the
  37. >    two to work together.
  38. >
  39. >
  40. > 3) When I use SetActivePage() or SetVisualPage() it does not work
  41. >    in the mode I am using, I am using the 320x200x256 mode in
  42. >    Turbo Pascal. If I have a background picture and I want to
  43. >    animate it. How would I do this if SetActivePage() and
  44. >    SetVisualPage() do not seem to work.
  45. >
  46.  
  47. AD 1:   The Hardware support for the modes you mention, is not very
  48. good in TP 6.0 Standard version (MY opinion) so I dont think you can
  49. make the pictures   "FLASH" on to your screen using Standard Pascal
  50. calls, you would hace to implement some special hardware near code.
  51.  
  52. AD 2: One way to preserve the background is to store the background in
  53. memory with the GetImage procedure and then put your background before
  54. you put your forground, this can be slow ( I wonder how Sierra do
  55. this).
  56.  
  57. AD 3: You would have to write directly to the video registers, or
  58. better get a different BGI driver that could do the trick for you.
  59.  
  60. I think TP has drawbacks on the graphical part, as far as I remember
  61. there were no improvements made to the GRAPH unit from version 5.5 to
  62. 6.0, not even mouse support, maybe this is better in version 7.0
  63.  
  64. Hope this helps
  65.  
  66.  
  67.  
  68.  
  69.           ______________________________________________________
  70.          |   __  .  __   __     |   Mikael Lindberg Mortensen   |
  71.          |  |__| | |__  | /|    |   Research Center Risoe,      |
  72.          |  |  \ |  __| |/_|    |   Roskilde Denmark.           |
  73.          |______________________________________________________|
  74.