home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!tedoc!brox
- From: brox@corena.no (Bjorn P. Brox)
- Subject: pbmplus10dec91, xwdtopnm : white isn't white anymore..
- Message-ID: <BtqyyC.s56@corena.no>
- Date: Sat, 29 Aug 1992 13:32:36 GMT
- Organization: CORENA A/S
- Lines: 81
-
-
- I posted this directly to Jef Poskanzer for about 3 months ago, with no
- responce. This is just to make shure that it is fixed in the next version
- of the pbmplus package:
-
- I have some problems with xwdtopnm.
- Using xmag on the screen shows that white is (0xff00, 0xff00, 0xff00)
-
- When I dump a window using "xwd | xwdtopnm >file.pnm" the white color
- becomes (0xfe, 0xfe, 0xfe) (sometimes 0xfd..), which looks white, but isn't
- white enough... (A PostScript B&W printer gives you a thin shade, you will
- also sometimes get some effects using xwdtopnm|ppmtopgm|pgmtopbm.
-
- The error shows up when when converting from short to char on the color
- table, like in the statement at line 367, where *maxvalP = 255:
- x11colors[i].red =
- (long) x11colors[i].red * (long) *maxvalP / 65535L;
- Shows that:
- 0xff00*255/65535 = 254
-
- I am using an IBM RS6000/320, AIX 3.2, X11R4.
-
- senja:brox> xwdtopnm -version
- xwdtopnm: Version of 10dec91
- xwdtopnm: BSD defined
- xwdtopnm: PBMPLUS_RAWBITS defined
- xwdtopnm: RGB_DB="/usr/lib/X11/rgb"
- xwdtopnm: LIBTIFF defined
- senja:brox>
-
- Below is a small uuencoded compressed xwd file you can test xwdtopnm on.
-
- begin 664 mailbox.xwd.Z
- M'YV0``*N"0C@`$$!!!$0E+&0H,,`!$$0A!A08D"%`6D0'."PHT>,%`&$!,`P
- M8,D!ACP&Q'.'3)TV<%0Z-#CQ'P";-FD&%(`-0,]?!1UR))C3(0$Y`#[=#$JP
- M`"@`WY;J!@!X`K`!@Q#7C`!`"-5+8"0!`&P"$`V<0FP`0`&`!H8A6X`N`,
- MP#NQ"\````0`DE@&?``0`L!V:@./4QTXK"+V@<-58B$X+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