home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.dec:5878 comp.os.vms:17761 comp.unix.ultrix:8228 comp.windows.misc:1678 comp.windows.x:18990
- 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
- Newsgroups: comp.sys.dec,comp.os.vms,comp.unix.ultrix,comp.windows.misc,comp.windows.x
- Subject: How do I throw a pixmap up on a DecWindows screen at once?
- Message-ID: <1992Nov10.202825.17325@husc3.harvard.edu>
- From: mlevin@husc8.harvard.edu (Michael Levin)
- Date: 10 Nov 92 20:28:24 EST
- Distribution: world
- Organization: Harvard University Science Center
- Nntp-Posting-Host: husc8.harvard.edu
- Lines: 23
-
-
- I am a complete novice to X-windows programming (although I know
- C and unix and VMS systems programming at an intermediate level). I
- need to take a 2-dimensional array of colormap indeces, corresponding
- to a rectangular patch of the screen with pixels of different colors,
- and throw it up as a window on a Ultrix VAX or a VMS Vax with
- DecWindows (no MIT X stuff - just regular out-of-the-box DecWindows)
- from a C program. Something like this:
- display_in_window(array)
- short array[X][Y];
- {
- /* here's the part I'm having trouble with */
- }
-
- where each element of array[][] will be 0 for black, 1 for white, 2
- for green, etc.
- Is there any code anywhere that will show me how to do this? At
- least a hint as to which routines I should be looking at (I don't have
- a DecWindows manual, but I'll get one if there's no PD code already
- around to do this - what's the proper manual called?). If anyone has
- any helpful suggestions, please email me at mlevin@husc8.harvard.edu.
-
- Mike Levin
-