Packages

 

com.aspose.psd.fileformats.jpeg

Class JpegSaver

    • Constructor Summary

      Constructors 
      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.
    • Constructor Detail

      • JpegSaver

        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.

        Parameters:
        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.
    • Method Detail

      • getOptimizedQTables

        public com.aspose.internal.fileformats.jpeg.rdoptimizer.OptimizedQTables getOptimizedQTables()

        Gets the optimized quantization tables.

        Value: The optimized quantization tables.
      • getEncodingMode

        public int getEncodingMode()

        Gets the encoding mode.

        Value: The encoding mode.
      • process

        public void process(Rectangle rectangle,
                            byte[] data,
                            Point start,
                            Point end)

        The process.

        Specified by:
        process in interface IPartialRawDataLoader
        Parameters:
        rectangle - The rectangle.
        data - The data.
        start - The start.
        end - The end.
      • process

        public void process(Rectangle rectangle,
                            byte[] data,
                            Point start,
                            Point end,
                            LoadOptions loadOptions)

        Processes the specified rectangle.

        Specified by:
        process in interface IPartialRawDataLoader
        Parameters:
        rectangle - The rectangle.
        data - The data.
        start - The start.
        end - The end.
        loadOptions - The load options.
      • flushData

        public final void flushData(boolean prepare)

        Flushes the data.