Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!mimsy!mojo!russotto From: russotto@eng.umd.edu (Matthew T. Russotto) Newsgroups: comp.sys.mac.programmer Subject: Re: Color Quickdraw Keywords: CobyBits, Palettes Message-ID: <1990Aug17.142506.8023@eng.umd.edu> Date: 17 Aug 90 14:25:06 GMT References: <1755@metasoft.UUCP> Sender: news@eng.umd.edu (The News System) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 33 In article <1755@metasoft.UUCP> rln@metasoft.UUCP (Roberta Norin) writes: >I am having two problems using Color QuickDraw and would appreciate any >advice or insights. > >1. I am converting PICTs to my application's objects: I am using the >QuickDraw standard procs to do this. For bitmaps, I just want to >create another picture so I am opening a picture and calling CopyBits >with the arguments that are passed to StdBits. I copy to the BitMap of >the current grafport. This works fine for black and white bitmaps but >I crash with color. Can anyone help. I have seen other references to >this problem but no solutions. I've tried it with some pretty small >images and still crash. Something seems fishy here-- doesn't CopyBits call StdBits, and wouldn't that make the whole thing circular? > >2. I have a palette of different colors to choose from. Since there >is only one palette in the application I use the Ghost Window global >to get it to float. This has worked fine with a small amount of extra >code except the palette manager does not change its colors when the >ColorPicker is called and a palette entry is changed. I suspect it has >something to do with the fact that it is a ghost window and am >wondering if this is an impossible combination or if there is some way >to get this to work. If I change the color entries myself by calling >PaletteToCTab(), the colors will change but only after calling the >ColorPicker a second time. When you change a palette entry, you need to call ActivatePalette on the window that has that palette assigned. -- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu ][, ][+, ///, ///+, //e, //c, IIGS, //c+ --- Any questions?