Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cwjcc!gatech!hubcap!ncrcae!ncrlnk!uunet!mcvax!kth!draken!tut!santra!kampi!jmunkki From: jmunkki@kampi.hut.fi (Juri Munkki) Newsgroups: comp.sys.mac.programmer Subject: Re: Stupid QuickDraw question Message-ID: <19810@santra.UUCP> Date: 19 Feb 89 11:38:42 GMT References: <71976CXT105@PSUVM> <3695@ucdavis.ucdavis.edu> Sender: news@santra.UUCP Reply-To: jmunkki@kampi.UUCP (Juri Munkki) Organization: Helsinki University of Technology, Finland Lines: 22 In article <3695@ucdavis.ucdavis.edu> lim@iris.ucdavis.edu (Lloyd Lim) writes: >In article <71976CXT105@PSUVM> CXT105@PSUVM.BITNET (Christopher Tate) writes: >>What is the best way to plot a single point in a given GrafPort >> >>A friend has told me the only way he knows of is to MoveTo the proper point, >>then Line(0,0) to draw it. > >Yep, this is the best way to do it. It's not really that strange. Most people >don't draw single points that often anyway. QuickDraw has many more powerful >features. That's the easiest way to do it. The best way (fastest) is to call PaintRect with a rectangle containing a single pixel. You have to make two toolbox calls to draw a pixel, if you use MoveTo and LineTo. The fastest way to draw multiple pixels is to create an offscreen bitmap and write directly to this bitmap. You can then copy this bitmap to your grafport. _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ | Juri Munkki jmunkki@hut.fi jmunkki@fingate.bitnet I Want Ne | | Helsinki University of Technology Computing Centre My Own XT | ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~