home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
- From: mlevin@husc8.harvard.edu (Michael Levin)
- Newsgroups: fj.mail-lists.x-window
- Subject: How do I throw a pixmap up on a DecWindows screen at once?
- Message-ID: <1992Nov19.110927.8362@sm.sony.co.jp>
- Date: 19 Nov 92 11:09:27 GMT
- Sender: daemon@sm.sony.co.jp (The devil himself)
- Distribution: fj
- Organization: Harvard University Science Center
- Lines: 28
- Approved: michael@sm.sony.co.jp
-
- Date: 10 Nov 92 20:28:24 EST
- Message-Id: <1992Nov10.202825.17325@husc3.harvard.edu>
- Newsgroups: comp.sys.dec,comp.os.vms,comp.unix.ultrix,comp.windows.misc,comp.windows.x
- Sender: xpert-request@expo.lcs.mit.edu
-
-
- 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
-