public class JpegSaver extends Object implements IPartialRawDataLoader
The jpeg saver.
Constructor and Description |
---|
JpegSaver(com.aspose.internal.fileformats.jpeg.JpegStream stream,
JpegOptions jpegOptions,
Rectangle imageBounds,
PixelDataFormat pixelDataFormat,
com.aspose.internal.fileformats.jpeg.encodingcontrollers.JpegEncodingController encodingController,
int encodingMode,
com.aspose.internal.fileformats.jpeg.rdoptimizer.OptimizedQTables optimizedQTables)
Initializes a new instance of the
JpegSaver class. |
Modifier and Type | Method and Description |
---|---|
void |
flushData(boolean prepare)
Flushes the data.
|
int |
getEncodingMode()
Gets the encoding mode.
|
com.aspose.internal.fileformats.jpeg.rdoptimizer.OptimizedQTables |
getOptimizedQTables()
Gets the optimized quantization tables.
|
void |
process(Rectangle rectangle,
byte[] data,
Point start,
Point end)
The process.
|
void |
process(Rectangle rectangle,
byte[] data,
Point start,
Point end,
LoadOptions loadOptions)
Processes the specified rectangle.
|
public JpegSaver(com.aspose.internal.fileformats.jpeg.JpegStream stream, JpegOptions jpegOptions, Rectangle imageBounds, PixelDataFormat pixelDataFormat, com.aspose.internal.fileformats.jpeg.encodingcontrollers.JpegEncodingController encodingController, int encodingMode, com.aspose.internal.fileformats.jpeg.rdoptimizer.OptimizedQTables optimizedQTables)
Initializes a new instance of the JpegSaver
class.
stream
- The stream.jpegOptions
- The jpeg options.imageBounds
- The image bounds.pixelDataFormat
- The pixel Data Format.encodingController
- Encoding controller.encodingMode
- The JPEG encoding mode.optimizedQTables
- The optimized QTables.public com.aspose.internal.fileformats.jpeg.rdoptimizer.OptimizedQTables getOptimizedQTables()
Gets the optimized quantization tables.
Value: The optimized quantization tables.public int getEncodingMode()
Gets the encoding mode.
Value: The encoding mode.public void process(Rectangle rectangle, byte[] data, Point start, Point end)
The process.
process
in interface IPartialRawDataLoader
rectangle
- The rectangle.data
- The data.start
- The start.end
- The end.public void process(Rectangle rectangle, byte[] data, Point start, Point end, LoadOptions loadOptions)
Processes the specified rectangle.
process
in interface IPartialRawDataLoader
rectangle
- The rectangle.data
- The data.start
- The start.end
- The end.loadOptions
- The load options.public final void flushData(boolean prepare)
Flushes the data.