Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jensen@wrl.dec.com (Paul Jensen)
Subject: Re: How to get 24-bit pictures on DECstation 5000/200PXG?
Date: 4 Feb 91 22:01:01 GMT	[thread overview]
Message-ID: <1991Feb4.220101.3296@pa.dec.com> (raw)
In-Reply-To: 1991Jan31.172945.1@max.u.washington.edu

>
>	Please reply via Email; in desparation I am posting to groups which
>I don't normally read!
>
You raise a few points of sufficiently global interest to be worth
posting here.

> [how to  display truecolor images]
The short answer is that what you want to do is fairly simple
with core X (no PEX needed), but may not be necessary unless you enjoy
programming.  Image display software is everybody's favorite first
X program, and as a consequence there are "billions and billions" of
them floating around.  The chances are what you want already exists:
you should check comp.sys.sgi and comp.sources.x.  If you have to
roll your own, write your code to put the image into a matrix of ints
(i.e. 32-bit pixels, 8 each of RGB), then read up on how to use the
XPutImage call.  You can't avoid colormaps, but unless you need
Gamma correction the default on the 24-plane systems will serve you fine.

>- Maybe this has to be done outside of X altogether?
X (+ extensions) is the only way to gain access to the PX[G[-turbo]]
graphics hardware.  The X server uses undocumented driver ioctls() to
gain access to undocumented hardware interfaces.

>- The DEC postscript viewer dxpsview fails on every postscript file I have 
>tried with the X error: "BadAlloc (insufficient resources for operation) 
>			 opcode 53 (X_CreatePixmap)"
>I get the same error on other DECstations (5000/200PX) as well.
>Is this a bug in the Ultrix 4.1 release?  Is there a work-around (maybe
>another more generic X-based postscript viewer)?  
>
This is a "feature", documented in the release notes.  DPS is trying to
create an 8-1/2x11 pixmap; offscreen memory is not tall enough to
accomodate this.  The release notes document a workaround involving the
"watch progress" option (which causes dxpsview to render directly to
the window).  You can also adjust the scale factor (<.9 ought to work)
or orientation (i.e. landscape) menu options.  My favorite is to start
the server with the "-dpi 92" command line option: unlike the other
workarounds, this one lets you say "dxpsview file" without having to
mess around with the menues (92 dpi is closer to the resolution of
most Sony monitors than 100 anyway).

--
					/Paul Jensen
					 Digital Equipment Corp.
					 Palo Alto, CA


  reply	other threads:[~1991-02-04 22:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-02-01  1:29 How to get 24-bit pictures on DECstation 5000/200PXG? merritt
1991-02-04 22:01 ` Paul Jensen [this message]
     [not found] <9102020056.AA25076@hydro.Saic.COM>
1991-02-07 17:07 ` Chris.Rusbridge
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