[JAI] Writing DisplayJAI's to file.
I have a PlanarImage object which is converted to a DisplayJAI type
object (Actually a DisplayJAIWithAnnotations object -
https://jaistuff.dev.java.net/) in order for additional information to
be drawn on top of the image. This is fine when I want to display the
image using a JFrame on my local machine. The problem I have is that the
final image needs to be displayed using JSP's. I can save the original
PlanarImage on the server side as a jpeg and stream the jpeg to the jsp
but this means I lose the additional information.
Is there a way of saving DisplayJAI objects as jpegs (I'm guessing
probably not as the DisplayJAI class is an extension of JPanel), or is
there another route I can go down to draw on-top of a PlanarImage which
can then be saved as a jpeg?