I have a handwritten text as a BufferedImage object. I need to generate it as a tiff image file with CCITT T.4 compression technique.
But CCITT T.4 requires the image to be a 1 bit depth image. My image in the BufferedImage is in 32 bit depth. When I convert it to 1 bit using convert1() funtion, the black handriting is gone and the entire image turns black.
I read elsewhere, that as 1 bit images are black&white, so while converting to 1bit it is converting the transparent layer bits to black. My handwritten notes are in black color too so the entire image becomes black.
I'm able to generte tiff using LZW technique without issues. and even with CCITT T.4 but only on 24 bit images. When the image is 32 bit (with extra transparency layer) the image is turning to black. Can anyone guide me as to how to convert the image to CCITT T.4 format for images with transparency.