home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / graphics / tiff / unix / archive.z / archive / text0072.txt < prev    next >
Encoding:
Text File  |  1995-09-20  |  2.3 KB  |  62 lines

  1. > Dear Sir(s),
  2. >     
  3. >     We are using xtiff program (from contrib of Sam Leffler's software on 
  4. > TIFF v3.3 ) to view TIFF images.For some images it is displaying the contents 
  5. > without any problems (They happen to be of Bits/Sample = 1) but for the other 
  6. > we are not able to view the image (They are of Bits/Sample = 8) instead we are 
  7. > getting the following error.
  8. >     xtiff: 24-bit DirectColor visual not available
  9. >     We would be grateful to you if you can help us out of this problem.
  10. >     Thanking you, and awaiting for your reply
  11. What kind of graphics hardware do you have.  8 bits/sample with 3 samples
  12. per pixel(i.e. RGB) will need 24 bitplanes to display.  xtiff is requesting
  13. a 24 bit Truecolor X visual from your X server and your X server is saying
  14. it doesn't have one.
  15.  
  16. On SGI hardware if you don't have 24 bitplanes we use dithering to
  17. approximate a 24 bit Truecolor visual so xtiff will work on all our systems
  18. though the image will not be of the highest quality on 8 bit machines.
  19.  
  20. If your on an 8 bit system(not an SGI) without dithering capability 24 bit
  21. Truecolor is not be an option.  Systems like this usually only offer
  22. Psuedocolor visuals which use a color map (256 entries on an 8 bit system).
  23. Some viewers can attempt to map the colors in the Truecolor image to the
  24. available 256 colormap entries but this usually results in a serious
  25. degradation in the image.
  26.  
  27. You can run xdpyinfo on your machine and if you don't see any Truecolor
  28. visuals then the problem is your lacking the graphics hardware or X 
  29. server software for this capibility.  This is a typical 24 bit Truecolor
  30. visual in xdpyinfo:
  31.  
  32.   visual:
  33.     visual id:    0x2e
  34.     class:    TrueColor
  35.     depth:    24 planes
  36.     available colormap entries:    256 per subfield
  37.     red, green, blue masks:    0xff, 0xff00, 0xff0000
  38.     significant bits in color specification:    8 bits
  39.  
  40. This is a typical Psuedocolor entry:
  41.  
  42.   visual:
  43.     visual id:    0x25
  44.     class:    PseudoColor
  45.     depth:    8 planes
  46.     available colormap entries:    256
  47.     red, green, blue masks:    0x0, 0x0, 0x0
  48.     significant bits in color specification:    8 bits
  49.  
  50. =============================================================================
  51. Ed Millard
  52. Silicon Graphics Inc.
  53. Developer's Support Group
  54. millard@sgi.com
  55. =============================================================================
  56.  
  57.