F
forelight
Hello,
This is probably an offputtingly trivial question to someone who isn't
as new to JAI as I am. I have a servlet that, depending on some
condition,
will send to the browser either an unaltered image as it exists on disk
in the form of a JPEG file, or the same imaged dimmed. The "dimming"
consists of little more than adding an alpha channel to the jpeg image
and
setting it to some value in the range between 0 and 255 for each pixel.
It is
performed on the fly using a Graphics2D manipulation and is sent to the
response output stream directly from memory.
The problem with this is that it doesn't work on Unix, because
Graphics2D
depends on a running X server, which I don't want to intoduce into the
picture. I understand that JAI doesn't have this dependency on X and
would like to change my program to use JAI.
Would anyone be so kind as to give me some pointers where I could
find a recyclable snipped of code or some relevant discussion? I've
googled around for this, but haven't found anything direcly usable.
I've also read most of the JAI user guide and it seems a bit too
general
and vague to me, admittedly not a graphics prefessional.
Thank you very much in advance,
-Igor.
This is probably an offputtingly trivial question to someone who isn't
as new to JAI as I am. I have a servlet that, depending on some
condition,
will send to the browser either an unaltered image as it exists on disk
in the form of a JPEG file, or the same imaged dimmed. The "dimming"
consists of little more than adding an alpha channel to the jpeg image
and
setting it to some value in the range between 0 and 255 for each pixel.
It is
performed on the fly using a Graphics2D manipulation and is sent to the
response output stream directly from memory.
The problem with this is that it doesn't work on Unix, because
Graphics2D
depends on a running X server, which I don't want to intoduce into the
picture. I understand that JAI doesn't have this dependency on X and
would like to change my program to use JAI.
Would anyone be so kind as to give me some pointers where I could
find a recyclable snipped of code or some relevant discussion? I've
googled around for this, but haven't found anything direcly usable.
I've also read most of the JAI user guide and it seems a bit too
general
and vague to me, admittedly not a graphics prefessional.
Thank you very much in advance,
-Igor.