Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cs.utexas.edu!asuvax!stjhmc!p88.f15.n300.z1.fidonet.org!Lawson.English From: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) Newsgroups: comp.sys.mac.programmer Subject: Re: Novice Questions: (Quick Draw). Message-ID: <12598.28432327@stjhmc.fidonet.org> Date: 29 May 91 03:20:27 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 24 Christopher Tate writes in a message to All >The obvious, intuitive way of doing this is [drawing a single pixel]: > >MoveTo ( x , y ) ; >Line ( 0 , 0 ) ; CT> Because of the way that Quickdraw handles drawing lines, the CT> faster way of doing this is to use Line(1, 0) or Line(0, 1) instead CT> of Line(0, 0). Gotta love it.... :-) Because of the Trap-dispatcher overhead, the best way would be to setup a rect w/o SetRect and call PaintRect or FillRect (benchmark 'em for which is faster). This avoids 1 system call. I've also seen CopyBits suggested. Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org