home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / fj / maillis / xwindow / 17640 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.6 KB

  1. Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
  2. From: mlevin@husc8.harvard.edu (Michael Levin)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: How do I throw a pixmap up on a DecWindows screen at once?
  5. Message-ID: <1992Nov19.110927.8362@sm.sony.co.jp>
  6. Date: 19 Nov 92 11:09:27 GMT
  7. Sender: daemon@sm.sony.co.jp (The devil himself)
  8. Distribution: fj
  9. Organization: Harvard University Science Center
  10. Lines: 28
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 10 Nov 92 20:28:24 EST
  14. Message-Id: <1992Nov10.202825.17325@husc3.harvard.edu>
  15. Newsgroups: comp.sys.dec,comp.os.vms,comp.unix.ultrix,comp.windows.misc,comp.windows.x
  16. Sender: xpert-request@expo.lcs.mit.edu
  17.  
  18.  
  19.      I am a complete novice to X-windows programming (although I know
  20. C and unix and VMS systems programming at an intermediate level). I
  21. need to take a 2-dimensional array of colormap indeces, corresponding
  22. to a rectangular patch of the screen with pixels of different colors,
  23. and throw it up as a window on a Ultrix VAX or a VMS Vax with
  24. DecWindows (no MIT X stuff - just regular out-of-the-box DecWindows)
  25. from a C program. Something like this:
  26. display_in_window(array)
  27. short array[X][Y];
  28. {
  29.    /* here's the part I'm having trouble with */
  30. }
  31.  
  32. where each element of array[][] will be 0 for black, 1 for white, 2
  33. for green, etc.
  34.    Is there any code anywhere that will show me how to do this? At
  35. least a hint as to which routines I should be looking at (I don't have
  36. a DecWindows manual, but I'll get one if there's no PD code already
  37. around to do this - what's the proper manual called?). If anyone has
  38. any helpful suggestions, please email me at mlevin@husc8.harvard.edu.
  39.  
  40. Mike Levin
  41.