Package org.jCharts.encoders
Class JPEGEncoder
java.lang.Object
org.jCharts.encoders.JPEGEncoder
This class REQUIRES the jdk 1.4
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final void
encode
(Chart chart, float quality, OutputStream outputStream) Encodes the chart to a JPEG format.
-
Field Details
-
JPEG
- See Also:
-
-
Constructor Details
-
JPEGEncoder
- Throws:
Exception
-
-
Method Details
-
encode
public static final void encode(Chart chart, float quality, OutputStream outputStream) throws ChartDataException, PropertyException, IOException Encodes the chart to a JPEG format. If you are generating large dimension images, the file size can get quite large. You can try decreasing the quality to decrease the file size.- Parameters:
quality
- float value from 0.0f(worst image quality) - 1.0f(best image quality)outputStream
-- Throws:
ChartDataException
PropertyException
IOException
-