home *** CD-ROM | disk | FTP | other *** search
- From: brown@hpfcso.FC.HP.COM (John Brown)
- Date: Thu, 3 Sep 1992 16:15:40 GMT
- Subject: Re: Display images that have more than 256 colors
- Message-ID: <7371284@hpfcso.FC.HP.COM>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!elroy.jpl.nasa.gov!sdd.hp.com!scd.hp.com!cupnews0.cup.hp.com!hppad.waterloo.hp.com!hppad!hpfcso!brown
- Newsgroups: comp.sys.hp
- References: <92247.200751CHLBT014@TWNMOE10.BITNET>
- Lines: 47
-
- In comp.sys.hp, <CHLBT014@TWNMOE10.BITNET> writes:
-
- > We have a 720 workstation with CRX-24. We want to display two
- > 256 colors images at the same time. And These two images have its own
- > 256 colors combination. Is it possible to do so ? Is it true that
- > you can display more than 256 colors simultaneously with CRX-24?
-
- It is possible to display more than 256 colors with CRX-24. However,
- whether this will help you or not depends on several things, such as:
-
- 1) what is the format of the images you want to display? xwd? jpg?
- 2) what tool do you intend to use to display the images? xwud? xv?
-
- The basic problem is that most "standard" tools used to display images
- are not very clever about X visuals -- they generally use the default
- visual. On the CRX-24, the default visual is an 8-bit PseudoColor visual
- with 255 available colormap entries (the last entry is reserved for
- transparent). If you're running mwm or Vuewm, quite a few of these
- colormap entries will already be consumed. So, a tool like "xwd" will
- probably create its own colormap to display a 256-color image. Some
- other tools, like "xv" for example, are smarter about using colors and
- do their own dithering, so they may be able to display two "256-color"
- images simulaneously without having to create extra colormaps.
-
- If you're developing your own tool to display images, your best bet
- would be to use the 24-bit DirectColor visual on the CRX-24. This is
- not the default visual so your tool will have to be smart enough to
- see which visuals are available and seek out the "best" one (probably
- the 24-bit DirectColor one in your case). If your tool does not
- initialize the 24-bit DirectColor colormap to some weird ramp, there
- should be virtually no limit to the number of images you can correctly
- display at the same time.
-
- > Wen-Tsau Chiu
-
- Hope this helps! I could offer a bit more detail if I knew more about
- what you're trying to do.
-
- John Brown
- Hewlett-Packard
- User Interface Technology Division
- Fort Collins, CO
- ------------------------------------------------------------------------------
- This response does not represent the official position of, or statement by,
- the Hewlett-Packard Company. The above data is provided for informational
- purposes only. It is supplied without warranty of any kind.
- ------------------------------------------------------------------------------
-