Michael Voyes wrote:
Batik process in ARGB colorspace. Suppose, i'm not interested with Color
output; then i need to use :
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?
This depends a lot on how you are doing the transcoding. If you
are using the TiledTranscoder (which I think you are) then you need to
come up with a replacement for batik.gvt.filter.GraphicsNodeRed8bit
that uses a gray ColorModel instead of the sRGB ColorModel. You will
also need to replace the GraphicsNodeRable8Bit with one that uses
your GraphicsNodeRed. This should mostly be cut and paste.
If you are using the JPEG/TIFF transcoders then you should only
need to subclass and replace the 'createImage' method.
In doing this there is some chance that everything will fall apart
because something in Batik is assuming the destination will have 3/4
bands. I don't think this will happen but it might (especially with
filters).
Good luck!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]