Batik process in ARGB colorspace. Suppose, i'm not interested with Color output; then i need to use :
buf = new BufferedImage(1,1, BufferedImage.TYPE_BYTE_BINARY);
RenderedImage fr = new FormatRed (GraphicsUtil.wrap(result), buf.getColorModel());
to convert the ARGB RenderedImage to Bilevel output.
or
buf = new BufferedImage(1,1, BufferedImage.TYPE_BYTE_GRAY);
RenderedImage fr = new FormatRed (GraphicsUtil.wrap(result), buf.getColorModel());
to convert the ARGB RenderedImage to Gray output.
But this all has, in my case, a lot of disadvantages. First, Batik spent a lot of time to process (since in ARGB colorspace) whenever Color is not required for our output. Secondly, Batik spent time to convert the ARGB RenderedImage to GRAY or Bilevel Colorspace when trying to Encode the RenderedImage.
I would need to be able to customize Batik to process in Gray Colorspace. Is it possible easily? What are things/Classes i need to modify to achieve this?
Thank you in Advance.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]