home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / openloo / 5135 < prev    next >
Encoding:
Text File  |  1993-01-24  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!sangam!iitb!vijay
  3. From: vijay@iitb.ernet.in (Vijay J. Talati)
  4. Subject: Pixmap drawing in Xview Canvases
  5. Message-ID: <1993Jan23.095243.17526@iitb.ernet.in>
  6. Keywords: Xview, Pixmaps, Canvas
  7. Organization: Indian Institute of Technology, Bombay
  8. Date: Sat, 23 Jan 1993 09:52:43 GMT
  9. Lines: 23
  10.  
  11. Hi,
  12. I am developing a drawing program under XView. 
  13. I have rubber banding objects. This is how i am going about it.
  14.  
  15. I am having two GCs and a pixmap and a canvas. While rubber banding (in 
  16. event_proc of canvas) i write the image in both the GCs , one has pixmap as
  17. drawable and other has the canvas has drawable. And in repaint_proc I 
  18. Copy the Pixmap on to Canvas ( XCopyPlane). This works, but i dont like it.
  19. There must be a more elegant way of doign it.. i want to avoid drawing to 
  20. two GCs.
  21.  
  22. Any pointers are welcome. If someone can point to some pd program which does
  23. something similar , then it would be helpful.
  24.  
  25. Thanks. Pleas e-mail responses to vijay@gateway.iitb.ernet.in
  26.  
  27. Vijay
  28.  
  29. -- 
  30. -----------------------------------------------------------------------
  31. Vijay Talati                        Email: vijay@iitb.ernet.in
  32. ERNet Lab.                          (X.400):
  33. Computer Centre                      s=Talati ou=gateway o=iitb prmd=ernet c=in
  34.