home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / graphics / 9266 < prev    next >
Encoding:
Text File  |  1992-08-29  |  4.0 KB  |  91 lines

  1. Newsgroups: comp.graphics
  2. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!tedoc!brox
  3. From: brox@corena.no (Bjorn P. Brox)
  4. Subject: pbmplus10dec91, xwdtopnm : white isn't white anymore..
  5. Message-ID: <BtqyyC.s56@corena.no>
  6. Date: Sat, 29 Aug 1992 13:32:36 GMT
  7. Organization: CORENA A/S
  8. Lines: 81
  9.  
  10.  
  11. I posted this directly to Jef Poskanzer for about 3 months ago, with no
  12. responce. This is just to make shure that it is fixed in the next version
  13. of the pbmplus package:
  14.  
  15. I have some problems with xwdtopnm.
  16. Using xmag on the screen shows that white is (0xff00, 0xff00, 0xff00)
  17.  
  18. When I dump a window using "xwd | xwdtopnm >file.pnm" the white color
  19. becomes (0xfe, 0xfe, 0xfe) (sometimes 0xfd..), which looks white, but isn't
  20. white enough... (A PostScript B&W printer gives you a thin shade, you will
  21. also sometimes get some effects using xwdtopnm|ppmtopgm|pgmtopbm.
  22.  
  23. The error shows up when when converting from short to char on the color
  24. table, like in the statement at line 367, where *maxvalP = 255:
  25.     x11colors[i].red =
  26.         (long) x11colors[i].red * (long) *maxvalP / 65535L;
  27. Shows that:
  28.     0xff00*255/65535 = 254
  29.  
  30. I am using an IBM RS6000/320, AIX 3.2, X11R4.
  31.  
  32. senja:brox> xwdtopnm -version
  33. xwdtopnm: Version of 10dec91
  34. xwdtopnm: BSD defined
  35. xwdtopnm: PBMPLUS_RAWBITS defined
  36. xwdtopnm: RGB_DB="/usr/lib/X11/rgb"
  37. xwdtopnm: LIBTIFF defined
  38. senja:brox> 
  39.  
  40. Below is a small uuencoded compressed xwd file you can test xwdtopnm on.
  41.  
  42. begin 664 mailbox.xwd.Z
  43. M'YV0``*N"0C@`$$!!!$0E+&0H,,`!$$0A!A08D"%`6D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