Package org.jCharts.encoders
Class JPEGEncoder
- java.lang.Object
-
- org.jCharts.encoders.JPEGEncoder
-
public final class JPEGEncoder extends java.lang.ObjectThis class REQUIRES the jdk 1.4
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringJPEG
-
Constructor Summary
Constructors Modifier Constructor Description privateJPEGEncoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidencode(Chart chart, float quality, java.io.OutputStream outputStream)Encodes the chart to a JPEG format.
-
-
-
Field Detail
-
JPEG
private static final java.lang.String JPEG
- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public static final void encode(Chart chart, float quality, java.io.OutputStream outputStream) throws ChartDataException, PropertyException, java.io.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:
outputStream-quality- float value from 0.0f(worst image quality) - 1.0f(best image quality)- Throws:
ChartDataExceptionPropertyExceptionjava.io.IOException
-
-