home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / windows / x / 20179 < prev    next >
Encoding:
Text File  |  1992-12-14  |  758 b   |  20 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!spool.mu.edu!yale.edu!jvnc.net!news.edu.tw!sparc4.ncu.edu.tw!imux120!u438813
  3. From: u438813@imux120.ncu.edu.tw (Lin Wei-Ting)
  4. Subject: Set background color.
  5. Message-ID: <1992Dec14.113420.22072@sparc4.ncu.edu.tw>
  6. Sender: news@sparc4.ncu.edu.tw
  7. Reply-To: u438813@imux120.ncu.edu.tw
  8. Organization: Sun Microsystems, Inc.
  9. Date: Mon, 14 Dec 1992 11:34:20 GMT
  10. Lines: 8
  11.  
  12. dpy=(Display *)xv_get(canvas_paint_window(obj),XV_DISPLAY);
  13. gc=DefaultGC(dpy,DefaultScreen(dpy));
  14. XSetBackground(dpy,gc,pixvalue=(unsigned long)XGetPixel(ximage,k,j));
  15. I use the function to set a canvas background color but failed.Why?
  16.  
  17. thanks a lot.
  18.  
  19.  
  20.