Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!portal!sv!daven From: daven@svc.portal.com Newsgroups: comp.sys.mac.programmer Subject: Re: Quick drawing Message-ID: <1990Dec25.225751.19724@svc.portal.com> Date: 25 Dec 90 22:57:51 GMT References: Organization: Software Ventures Lines: 21 In article aberno@questor.wimsey.bc.ca (Anthony Berno) writes: > > 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. My hunch is that setting the pen to the width of the rect, and drawing the rect as a line would produce the fastest results. > And what about larger rectangles, up to 8x8 pixels? The above idea ought to work fine, even for a line 8 pixels wide. -- ------------------------------------------------------------------------------- Dave Newman | daven@svc.portal.com | AppleLink: D0025 Sofware Ventures Corp. | AOL: MicroPhone | CIS: 76004,2161 Berkeley, CA 94705 | WELL: tinman@well.sf.ca.us | (415) 644-3232