home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / dec / 5878 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.7 KB

  1. Xref: sparky comp.sys.dec:5878 comp.os.vms:17761 comp.unix.ultrix:8228 comp.windows.misc:1678 comp.windows.x:18990
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!kuhub.cc.ukans.edu!husc-news.harvard.edu!husc8.harvard.edu!mlevin
  3. Newsgroups: comp.sys.dec,comp.os.vms,comp.unix.ultrix,comp.windows.misc,comp.windows.x
  4. Subject: How do I throw a pixmap up on a DecWindows screen at once?
  5. Message-ID: <1992Nov10.202825.17325@husc3.harvard.edu>
  6. From: mlevin@husc8.harvard.edu (Michael Levin)
  7. Date: 10 Nov 92 20:28:24 EST
  8. Distribution: world
  9. Organization: Harvard University Science Center
  10. Nntp-Posting-Host: husc8.harvard.edu
  11. Lines: 23
  12.  
  13.  
  14.      I am a complete novice to X-windows programming (although I know
  15. C and unix and VMS systems programming at an intermediate level). I
  16. need to take a 2-dimensional array of colormap indeces, corresponding
  17. to a rectangular patch of the screen with pixels of different colors,
  18. and throw it up as a window on a Ultrix VAX or a VMS Vax with
  19. DecWindows (no MIT X stuff - just regular out-of-the-box DecWindows)
  20. from a C program. Something like this:
  21. display_in_window(array)
  22. short array[X][Y];
  23. {
  24.    /* here's the part I'm having trouble with */
  25. }
  26.  
  27. where each element of array[][] will be 0 for black, 1 for white, 2
  28. for green, etc.
  29.    Is there any code anywhere that will show me how to do this? At
  30. least a hint as to which routines I should be looking at (I don't have
  31. a DecWindows manual, but I'll get one if there's no PD code already
  32. around to do this - what's the proper manual called?). If anyone has
  33. any helpful suggestions, please email me at mlevin@husc8.harvard.edu.
  34.  
  35. Mike Levin
  36.