Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!lavaca.uh.edu!elroy!math1h3 From: math1h3@elroy.uh.edu Newsgroups: comp.sys.mac Subject: Re: Color PICTs Message-ID: <5312.25a37be8@elroy.uh.edu> Date: 4 Jan 90 22:38:00 GMT References: <126900138@p.cs.uiuc.edu> Organization: University of Houston Lines: 34 In article <126900138@p.cs.uiuc.edu>, gillies@p.cs.uiuc.edu writes: > I have been trying to transfer a small color picture (from MacDraw > II), but every time I paste it into the clipboard, the color > information is lost. > > My real goal is to store a color PICT in the resource file of an > application. I've also tried "Save as PICT" in MacDraw II, but it is > stored in the file's data fork, not as a PICT resource. > > Is this a MacDraw II bug (it won't let color escape from the > application as a PICT)? Or is there some problem with color on the > clipboard? I've created type 2 PICTS (color Quickdraw) programming in MacFortran 020 and Absoft's MPW Fortran, and copied them to the clipboard, and they paste into Word with some color left. The palette might not be the same, though. The colors stored in type 2 PICTS are RGB numbers: three 2-byte integers for Red, Green, and Blue components. When the Mac tries to draw a color PICT in a window that does not have the right RGB's in its palette, the colors are approximated; I think the algorithm picks a best Euclidean norm approximation to the RGB values. I have also saved color PICTS in PICT files. I can open these (minus color) in MacDraw (1.9.5), but not if they have text in them. I think I am putting the text in the file properly, with PicComments, but it still doesn't work. Opening my color PICTS in Cricket Draw has always been slow or impossible It could be my version of Cricket Draw doesn't use Color Quickdraw, but the old-style color that existed in software but not hardware on the original Mac. That could have something to do with your problem, too. I hope this helps. David H. Wagner My opionions are mine and not the University of Houston's.