Method Summary |
|
public Object | clone() Returns a copy of this JPEGEncodeParam object. |
public int | getHorizontalSubsampling(int component) Get the horizontal subsampling factor for a band.
Parameters: component - The band of the image for which to retrieve subsampling. |
public int[] | getQTable(int component) Retrieve the contents of the quantization table used for a component.
Parameters: component - The band to which this table applies. |
public int | getQTableSlot(int component) Retrieve the quantization table slot used for a component.
Parameters: component - The band to which this table slot applies. |
public float | getQuality() Retrieve the quality setting for this encoding. |
public int | getRestartInterval() Gets the restart interval in Minimum Coded Units (MCUs). |
public int | getVerticalSubsampling(int component) Get the vertical subsampling factor for a band.
Parameters: component - The band of the image for which to retrieve subsampling. |
public boolean | getWriteImageOnly() Retrieve the setting of the writeImageOnly flag. |
public boolean | getWriteJFIFHeader() Retrieve the setting of the writeJFIF flag. |
public boolean | getWriteTablesOnly() Retrieve the setting of the writeTablesOnly flag. |
public boolean | isQTableSet(int component) Tests if a Quantization table has been set. |
public boolean | isQualitySet() Tests if the quality parameter has been set in this JPEGEncodeParam. |
public void | setChromaQTable(int[] qTable) Sets the quantization table to be used for chrominance data.
This is a convenience method which explicitly sets the
contents of quantization table 1. |
public void | setHorizontalSubsampling(int component, int subsample) Sets the horizontal subsampling to be applied to an image band. |
public void | setLumaQTable(int[] qTable) Sets the quantization table to be used for luminance data.
This is a convenience method which explicitly sets the
contents of quantization table 0. |
public void | setQTable(int component, int tableSlot, int[] qTable) Sets a quantization table to be used for a component. |
public void | setQuality(float quality) This creates new quantization tables that replace the currently
installed quantization tables. |
public void | setRestartInterval(int restartInterval) Sets the restart interval in Minimum Coded Units (MCUs). |
public void | setVerticalSubsampling(int component, int subsample) Sets the vertical subsampling to be applied to an image band. |
public void | setWriteImageOnly(boolean imageOnly) Controls whether the encoder writes only the compressed image data
to the output stream.
This is considered an abbreviated JPEG stream. |
public void | setWriteJFIFHeader(boolean writeJFIF) Controls whether the encoder writes a JFIF header using the APP0 marker. |
public void | setWriteTablesOnly(boolean tablesOnly) Instructs the encoder to write only the table data to the output stream.
This is considered an abbreviated JPEG stream. |