Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!wuarchive!bcm!etaylor From: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Newsgroups: comp.windows.x Subject: Re: Wanted Gray Scale Bitmaps Message-ID: <2989@gazette.bcm.tmc.edu> Date: 30 Nov 90 20:27:39 GMT References: <9011291959.AA04406@expo.lcs.mit.edu> Sender: usenet@bcm.tmc.edu Reply-To: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Organization: Baylor College of Medicine, Houston, Tx Lines: 18 Nntp-Posting-Host: wilkins.iaims.bcm.tmc.edu Well, you can only get so precise with your shades. The more shades you get, the bigger the pixmaps have to be and the farther you have to be from your screen. You could use the Floyd-Steinberg algorithm to generate your shades. Look at xloadimage for details. i.e. Use a pixmap (say 64x64) and modify the Floyd-Steinberg algorithm to try applying a single gray level value to each pixel. You will get very pleasing results since the F&S algorithm will minimize the contact between black values in your shade. -- Eric Taylor Baylor College of Medicine etaylor@wilkins.bcm.tmc.edu (713) 798-3776