home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ornl!utkcs2!darwin.sura.net!dtix!relay!relay2!afterlife!adm!news
- From: ELS-MIMO@risoe.dk (Mikael Lindberg Mortensen)
- Newsgroups: comp.lang.pascal
- Subject: Re: tp graphics
- Message-ID: <34031@adm.brl.mil>
- Date: 11 Nov 92 09:48:13 GMT
- Sender: news@adm.brl.mil
- Lines: 64
-
- > From: NOWINSKI A - OPTOMETRY <nowinski@watserv1.uwaterloo.ca>
- > Subject: tp graphics
- > Date: 9 Nov 92 19:40:09 GMT
- > To: info-pascal@BRL.MIL
-
- >
- > Subject : Help needed for Graphics in Turbo Pascal 6.
- >
- > Hi,
- > my name is Jack Nowinski. I have some trouble with graphics in
- > Turbo Pascal, I have three questions. I would really appreciate
- > some help with this.
- >
- > 1) I want a picture that has the PCX or GIF extension to show up
- > on my graphics screen, and in any screen resolution I want
- > i.e. (320x200x256, 640x480x16 etc). I also want the
- > picture to show up in a flash, instead of a slow fade.
- >
- > 2) I would like to have people walk in the background without
- > changing color or leaving black blocks behind. When I draw a
- > person in Turbo Pascal, and I put them to screen using
- > PutImage() after I put my character to a new position the old
- > position my person was on will have a black square, is there a
- > way to get rid of the black square on the old position and
- > make it look like my character is on a separate foreground
- > than the background, so what goes on in the foreground will
- > not change what happens in the background, or when I want the
- > two to work together.
- >
- >
- > 3) When I use SetActivePage() or SetVisualPage() it does not work
- > in the mode I am using, I am using the 320x200x256 mode in
- > Turbo Pascal. If I have a background picture and I want to
- > animate it. How would I do this if SetActivePage() and
- > SetVisualPage() do not seem to work.
- >
-
- AD 1: The Hardware support for the modes you mention, is not very
- good in TP 6.0 Standard version (MY opinion) so I dont think you can
- make the pictures "FLASH" on to your screen using Standard Pascal
- calls, you would hace to implement some special hardware near code.
-
- AD 2: One way to preserve the background is to store the background in
- memory with the GetImage procedure and then put your background before
- you put your forground, this can be slow ( I wonder how Sierra do
- this).
-
- AD 3: You would have to write directly to the video registers, or
- better get a different BGI driver that could do the trick for you.
-
- I think TP has drawbacks on the graphical part, as far as I remember
- there were no improvements made to the GRAPH unit from version 5.5 to
- 6.0, not even mouse support, maybe this is better in version 7.0
-
- Hope this helps
-
-
-
-
- ______________________________________________________
- | __ . __ __ | Mikael Lindberg Mortensen |
- | |__| | |__ | /| | Research Center Risoe, |
- | | \ | __| |/_| | Roskilde Denmark. |
- |______________________________________________________|
-