Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!apple!stevec From: stevec@Apple.COM (Steve Christensen) Newsgroups: comp.sys.mac.programmer Subject: Re: Correct way to set pixels? Message-ID: <52427@apple.Apple.COM> Date: 3 May 91 23:31:29 GMT References: <9563.2820DE7A@stjhmc.fidonet.org> <11279@ncar.ucar.edu> <5865@ns-mx.uiowa.edu> Distribution: na Organization: Apple Computer Inc., Cupertino, CA Lines: 20 wolf@piquet.cipl.uiowa.edu (Michael J. Wolf) writes: >What is the proper and endorsed manner to set and clear pixels in a window? > >I would like to be able to do somethig like a fatbits editor. Well, certainly one way of doing it is something like this: ForeColor(pixelOn ? BlackColor : WhiteColor); MoveTo(h,v); Line(1,0); This will draw a 1-pixel-long line. There's no QuickDraw routine to touch a single pixel... steve -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Steve Christensen Never hit a man with glasses. stevec@apple.com Hit him with a baseball bat.