home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!news.funet.fi!funic!nntp.hut.fi!vipunen.hut.fi!jmunkki
- From: jmunkki@vipunen.hut.fi (Juri Munkki)
- Subject: Re: How to get color I want when drawing directly to screen
- Message-ID: <1993Jan8.222719.17054@nntp.hut.fi>
- Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
- Nntp-Posting-Host: vipunen.hut.fi
- Reply-To: jmunkki@vipunen.hut.fi (Juri Munkki)
- Organization: Helsinki University of Technology
- References: <1993Jan8.145036.21943@rtsg.mot.com>
- Date: Fri, 8 Jan 1993 22:27:19 GMT
- Lines: 21
-
- In article <1993Jan8.145036.21943@rtsg.mot.com> wolfmc@rtsg.mot.com (Michael Wolf) writes:
- >So...the $60 questions is: What isthe best/fastest way to get the colors I
- >had intended with the image when I am doing direct writing to device video
- >memory.
-
- Assuming that you have some sort of sprites in an offscreen pixel map, make
- that offscreen pixel map use the same gDevice as your screen. This way, the
- color tables are the same.
-
- Of course, if you have multiple screens and you want to support them, you
- have to do this for every screen.
-
- If you are drawing geometrical shapes (polygons and lines), you can convert
- colors to pixel values with Color2Index. You only need to do this when the
- ctSeed of the color map changes.
-
- When do I get my $60?
-
- --
- Juri Munkki Windsurf: fast sailing
- jmunkki@hut.fi Macintosh: fast software
-