Package 

Class JpegIO


  • 
    public class JpegIO
    
                        

    JPEG input and output methods.

    • Method Summary

      Modifier and Type Method Description
      static Array<byte> compressToJpeg(Pix pixs) Returns a compressed JPEG byte representation of this Pix using defaultparameters.
      static Array<byte> compressToJpeg(Pix pixs, @IntRange(from = 0, to = 100) int quality, boolean progressive) Returns a compressed JPEG byte representation of this Pix.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • compressToJpeg

         static Array<byte> compressToJpeg(Pix pixs)

        Returns a compressed JPEG byte representation of this Pix using defaultparameters.

        Parameters:
        pixs - A source Pix image.
      • compressToJpeg

         static Array<byte> compressToJpeg(Pix pixs, @IntRange(from = 0, to = 100) int quality, boolean progressive)

        Returns a compressed JPEG byte representation of this Pix.

        Parameters:
        pixs - A source pix image.
        quality - The quality of the compressed image.
        progressive - Whether to use progressive compression.