home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 10017 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  2.8 KB

  1. From: brown@hpfcso.FC.HP.COM (John Brown)
  2. Date: Thu, 3 Sep 1992 16:15:40 GMT
  3. Subject: Re: Display images that have more than 256 colors
  4. Message-ID: <7371284@hpfcso.FC.HP.COM>
  5. Organization: Hewlett-Packard, Fort Collins, CO, USA
  6. 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
  7. Newsgroups: comp.sys.hp
  8. References: <92247.200751CHLBT014@TWNMOE10.BITNET>
  9. Lines: 47
  10.  
  11. In comp.sys.hp, <CHLBT014@TWNMOE10.BITNET> writes:
  12.  
  13. > We have a 720 workstation with CRX-24.  We want to display two
  14. > 256 colors images at the same time.  And These two images have its own
  15. > 256 colors combination.  Is it possible to do so ?  Is it true that
  16. > you can display more than 256 colors simultaneously with CRX-24?
  17.  
  18. It is possible to display more than 256 colors with CRX-24.  However,
  19. whether this will help you or not depends on several things, such as:
  20.  
  21. 1) what is the format of the images you want to display?  xwd?  jpg?
  22. 2) what tool do you intend to use to display the images?  xwud?  xv?
  23.  
  24. The basic problem is that most "standard" tools used to display images
  25. are not very clever about X visuals -- they generally use the default
  26. visual.  On the CRX-24, the default visual is an 8-bit PseudoColor visual
  27. with 255 available colormap entries (the last entry is reserved for
  28. transparent).  If you're running mwm or Vuewm, quite a few of these
  29. colormap entries will already be consumed.  So, a tool like "xwd" will
  30. probably create its own colormap to display a 256-color image.  Some
  31. other tools, like "xv" for example, are smarter about using colors and
  32. do their own dithering, so they may be able to display two "256-color"
  33. images simulaneously without having to create extra colormaps.
  34.  
  35. If you're developing your own tool to display images, your best bet 
  36. would be to use the 24-bit DirectColor visual on the CRX-24.  This is
  37. not the default visual so your tool will have to be smart enough to
  38. see which visuals are available and seek out the "best" one (probably
  39. the 24-bit DirectColor one in your case).  If your tool does not
  40. initialize the 24-bit DirectColor colormap to some weird ramp, there
  41. should be virtually no limit to the number of images you can correctly
  42. display at the same time.
  43.  
  44. > Wen-Tsau Chiu
  45.  
  46. Hope this helps!  I could offer a bit more detail if I knew more about
  47. what you're trying to do.
  48.  
  49. John Brown
  50. Hewlett-Packard
  51. User Interface Technology Division
  52. Fort Collins, CO
  53. ------------------------------------------------------------------------------
  54. This response does not represent the official position of, or statement by,
  55. the Hewlett-Packard Company.  The above data is provided for informational
  56. purposes only.  It is supplied without warranty of any kind.
  57. ------------------------------------------------------------------------------
  58.