Packages

 

com.aspose.imaging.fileformats.jpeg

Class JpegSaver

    • Constructor Detail

      • JpegSaver

        public JpegSaver(com.aspose.imaging_internal.fileformats.jpeg.JpegStream stream,
                         JpegOptions jpegOptions,
                         Rectangle imageBounds,
                         PixelDataFormat pixelDataFormat,
                         com.aspose.imaging_internal.fileformats.jpeg.encodingcontrollers.JpegEncodingController encodingController,
                         int encodingMode,
                         com.aspose.imaging_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.imaging_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 pixelsRectangle,
                            Color[] pixels,
                            Point start,
                            Point end)

        The process.

        Parameters:
        pixelsRectangle - The pixels rectangle.
        pixels - The pixels.
        start - The start.
        end - The end.
      • 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.
      • flashData

        public void flashData(boolean prepare)

        Flashes the data.