From: mlevin@husc8.harvard.edu (Michael Levin)
Subject: How do I throw a pixmap up on a DecWindows screen at once?
Date: 10 Nov 92 20:28:24 EST [thread overview]
Message-ID: <1992Nov10.202825.17325@husc3.harvard.edu> (raw)
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
reply other threads:[~1992-11-11 1:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox