Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!bierstadt!hpoppe From: hpoppe@bierstadt.ucar.edu (Herb Poppe) Newsgroups: comp.sys.mac.programmer Subject: Color QuickDraw, PICT2's and the Clipboard Message-ID: <3829@ncar.ucar.edu> Date: 31 Jul 89 18:11:10 GMT Sender: news@ncar.ucar.edu Reply-To: hpoppe@bierstadt.UCAR.EDU (Herb Poppe) Organization: Scientific Computing Division/NCAR, Boulder CO Lines: 20 I'm starting my first Color Quickdraw application. I think I understand the process of creating graphics in a color window: setting up the color environment with the Color Picker Package and the Palette Manager and then drawing with the selected colors after calling PMFore(Back)Color, etc. However, I don't understand how to handle PICTs read from the Clipboard or a file. How does one set up the palette for the window in which the picture will be displayed before DrawPicture is called such that one sees the same colors on screen as when the picture was created? There don't seem to be any PICT opcodes that set the palette dynamically as the picture is being processed by DrawPicture. Applications like Powerpoint don't copy the 'pltt' resource to the Clipboard and there is no place in a PICT file for one. I can't seem to find a reference to an appropriate technique in IM-V or the TN or Q&A stacks. I'm stumped. Would someone please enlighten me? Herb Poppe NCAR INTERNET: hpoppe@ncar.ucar.edu (303) 497-1296 P.O. Box 3000 CSNET: hpoppe@ncar.CSNET Boulder, CO 80307 UUCP: hpoppe@ncar.UUCP