[comp.sys.mac.apps] PICTs

nortond@lonexb.radc.af.mil (Douglas A. Norton) (02/02/91)

!!!! 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