Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!eecae!netnews.upenn.edu!linc.cis.upenn.edu!rubinoff From: rubinoff@linc.cis.upenn.edu (Robert Rubinoff) Newsgroups: comp.sys.mac.programmer Subject: Re: Stupid QuickDraw question Message-ID: <8145@netnews.upenn.edu> Date: 18 Feb 89 03:22:11 GMT References: <71976CXT105@PSUVM> Sender: news@netnews.upenn.edu Reply-To: rubinoff@linc.cis.upenn.edu.UUCP (Robert Rubinoff) Organization: University of Pennsylvania Lines: 15 In article <71976CXT105@PSUVM> CXT105@PSUVM.BITNET (Christopher Tate) writes: >What is the best way to plot a single point in a given GrafPort (window, screen >or other)? >A friend has told me the only way he knows of is to MoveTo the proper point, >then Line(0,0) to draw it. This strikes me as pretty strange; there should be >a primitive for drawing a single point. Since QuickDraw points fall inbetween pixels, I doubt very much whether you want to draw just a point. Presumably you want to draw just a single pixel; the simplest way to do that is to either draw a 1x1 rectangle around it or a 1-pixel long 1-pixel wide line across it. But since the pen must be at least one pixel high and one pixel wide to draw, this really means drawing a 0x0 rectangle or a 0-length line. Robert