Hi all;
I have the fop version 0.20.5, and I have to work with bitmap images. In
BmpImage.java class the code supports only for 1,4,8 and 24 bit sizes,
otherwise it throws an exception. Can't I modify this to support for 16 and 32
bits also with out changing the fop version. Your suggestions would be greatly
appreciated.
if (this.m_bitsPerPixel == 1)
bytes = (this.m_width + 7) / 8;
else if (this.m_bitsPerPixel == 24)
bytes = this.m_width * 3;
else if (this.m_bitsPerPixel == 4 || this.m_bitsPerPixel == 8)
bytes = this.m_width / (8 / this.m_bitsPerPixel);
else
throw new FopImageException("Image (" + this.m_href.toString()
+ ") has " + this.m_bitsPerPixel
+ " which is not a supported BMP
format...");
Regards,
Harshini.
------------------------------------------------------------------------------
CONFIDENTIALITY AND DISCLAIMER NOTICE
This e-mail, including any attachments, is confidential and intended only for
the addressee. If you are not the intended recipient, please notify us
immediately and delete this e-mail from your system. Any use or disclosure of
the information contained herein is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]