Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!olivea!apple!nerm From: nerm@Apple.COM (Dean Yu) Newsgroups: comp.sys.mac.programmer Subject: Re: Correct way to set pixels? Message-ID: <52431@apple.Apple.COM> Date: 4 May 91 00:59:56 GMT References: <11279@ncar.ucar.edu> <5865@ns-mx.uiowa.edu> <52427@apple.Apple.COM> Distribution: na Organization: Apple Computer Inc., Cupertino, CA Lines: 22 In article <52427@apple.Apple.COM> stevec@Apple.COM (Steve Christensen) writes: >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... > Actually, Line(0,0) will draw a single pixel... -- Dean Yu Blue Meanie, Negative Ethnic Role Model, etc. Apple Computer, Inc. My opinion and so on and so forth...