-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

I have a few worries with using JPEG.

For the most part, JPEG's are good for things like photographs, or images
with lots of gradient colors, due to the compression used.  For something
like a chart or a graph, they actually can be sub-standard.  Also, can you
control the amount of compression used by this codec? Just a few questions..
8)

-------
jdk 1.2 includes java 2d which has classes for manipulating jpegs. it should
be a trivial task to generate a java.awt.Graphics2D object on the fly, do
your own hacks to it and output the results as a jpeg via a stream utilizing
com.sun.image.code.jpeg.JPEGCodec. just remmember to set the content-type to
image/jpeg or whatever it is supposed to be. i wrote a hello world thingy a
while ago which worked fine.



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to