AHA! it seems that my backend managed to confused me this time. Of
course you are right and I am wrong. In gray scale images pixel values
represents intensity. Full intensity (255) is white and not black. The
reason I get confused is that apple scanners do it the other way around
and I failed to see where exactly I made the conversion in the byte
stream.
Looks like a good idea to me to have this details either implemented or
at least documented. The macros could be something like
SANE_SCALE_TO_8(4bit value) // Multiplying with 17 as Matthias Fleischer
proposed
SANE_SCALE_TO_16(xbit value where x, 8<x<16) // As proposed by Andreas
Beck in http://www.mostang.com/mail-archive/sane-devel/1999-04/0097.html
MF
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com