Xref: utzoo comp.sys.mac.apps:3785 comp.sys.mac.programmer:21306 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!usc!apple!voder!wlbr!lonex.radc.af.mil!nortond From: nortond@lonexb.radc.af.mil (Douglas A. Norton) Newsgroups: comp.sys.mac.apps,comp.sys.mac.programmer Subject: PICTs Summary: How do I get proper mapping of colors ie. 255white..0black Keywords: expect QuicKeys Message-ID: <1991Feb2.054938.26028@lonex.radc.af.mil> Date: 2 Feb 91 05:49:38 GMT References: <3991@client2.DRETOR.UUCP> Sender: nortond@lonex.radc.af.mil Organization: RADC Lines: 25 Nntp-Posting-Host: lonexb.radc.af.mil !!!! Could anyone who answers this plea please either email or use comp.sys.mac.programmer !!!! Can someone help me? I want to read a gray scale PICT file and use the resulting bit map from my offscreen. I can do all that up to a certain point; these two cases are the closest I can get: 1- All the colors are displayed correctly but the intesities are backwards ie 255-p(x,y) 2- All the colors are displayed correctly and all the numbers but 0&255 are correct. In this case black is 255 and white is 0 What I want is white(255)..(1)gray(254)..(255)black. I've tried to make my own off screen device and it works the way I want, that is until I make a PICT from that bitmap with CopyBits and print that PICT on a LaserWriter using the 6.0.2 driver. Everything prints correct but black and white are switched. But if I store that same PICT to a file or clipboard and read it into another program it displays correctly but when that program prints it it prints the same as my application. I hope someone can help me...Thanks Doug Norton Rome Laboratory internet: nortond@lonex.radc.af.mil