Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!van-bc!questor!aberno From: aberno@questor.wimsey.bc.ca (Anthony Berno) Newsgroups: comp.sys.mac.programmer Subject: Quick drawing Message-ID: Date: 16 Dec 90 02:01:12 GMT Organization: Questor: FREE Internet Access => +1 604 681.0670 Lines: 23 Hello, I'm a part-time Mac "programmer" (I don't know if I can elevate myself to that status yet) that is working on real-time data acquisition and analysis applications for the Mac II. I have a couple of things that I would like some advice on. First, I am trying to get a really fast way of doing 2-d color histograms. This, of course, involves drawing LOTS of little color rectangles on the screen. When drawing a little 2x2 rectangle, there are many ways of doing it. You can use FrameRect, PaintRect, use a pen, etc. But what is the fastest? I would rather avoid assembly language. Also, there are a lot of colors that I have to use, usually about 10-20 absolute colors. Would I get faster results if I were to bypass the Palette Manager and use lower-level tricks to get the right colors in the right rectangles? And what about larger rectangles, up to 8x8 pixels? Also, although this may sound kind of silly, I CANNOT figure out from Inside Macintosh how to do something very simple - take a portion of the image in a color window and save it to disk as a color PICT file. A general pointer on how to do this (no pun intended) would be very highly appreciated. Thanks a 1,048,576. -Anthony.