Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!elroy!cit-vax!tybalt.caltech.edu!wetter From: wetter@tybalt.caltech.edu (Pierce T. Wetter) Newsgroups: comp.sys.mac.programmer Subject: Re: Utilities for RGB to 8-Bit Message-ID: <6604@cit-vax.Caltech.Edu> Date: 19 May 88 19:53:34 GMT References: <92@ai.etl.army.mil> Sender: news@cit-vax.Caltech.Edu Reply-To: wetter@tybalt.caltech.edu.UUCP (Pierce T. Wetter) Organization: California Institute of Technology Lines: 21 > > I have a 24-bit color image on VAX with UNIX: > 8-bit red > 8-bit green > 8-bit blue > > I want to display this on Mac II, 8-bit video. > Sure, get one pixel at a time from your unix file, then SetRGBColor to red*256, green*256, blue*256, then SetPixel(x,y). This saves programmer time at the expense of user time. You might also want to do dithering, best simple dither is 50% of one color + 50% of another color, but I don't know any dithering algorithms off the top of my head. Pierce WEtter ---------------------------------------------------------------- wetter@tybalt.caltech.edu Race For Space Grand Prize Winner. ----------------------------------------------------------------- Useless Advice #986: Never sit on a Tack.