David Blevins wrote:
Any idea on how to make this change? I've been trying to forcefully
change the image type in the encoder from TIFF_BILEVEL_BLACK_IS_ZERO to
TIFF_BILEVEL_WHITE_IS_ZERO. Seems to have no effect. Maybe I'm not
going about that in the right way or maybe I'm on the wrong track
altogether.
Hmm, I thought it's simple.
In TIFFImageEncoder.java, line 357:
case TIFF_BILEVEL_WHITE_IS_ZERO:
photometricInterpretation = 0;
break;
case TIFF_BILEVEL_BLACK_IS_ZERO:
photometricInterpretation = 1;
break;
Have you tried to swap these values?
case TIFF_BILEVEL_WHITE_IS_ZERO:
photometricInterpretation = 1;
break;
case TIFF_BILEVEL_BLACK_IS_ZERO:
photometricInterpretation = 0;
break;
--
Oleg Tkachenko
Multiconn Technologies, Israel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]