Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!bloom-beacon!LIGHTNING.MCRCIM.MCGILL.EDU!mouse From: mouse@LIGHTNING.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: Graphics routine for X? Message-ID: <9012081126.AA02746@lightning.McRCIM.McGill.EDU> Date: 8 Dec 90 11:26:35 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 21 >> I am looking for a simple X-window graphics routine, one that will >> take xposition, yposition, and color as arguments and will place the >> corresponding pixel on the window. ("the" window?) > [Eric offers a simple routine using XSetForeground and XDrawPoint] > Before you use this, however, you need to allocate your colors from a > Colormap. [...] You also Need to create and map your Drawable (a > Window in your case, but it could also be a Pixmap) and a GC, as well > as opening a Display connection. Lest anyone get confused: if you're using a Pixmap, ignore the bits about the colormap and about mapping the drawable. (Pixmaps don't use colormaps and don't get mapped or unmapped.) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu