-
public class JpegIOJPEG input and output methods.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intDEFAULT_QUALITYpublic final static booleanDEFAULT_PROGRESSIVE
-
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. -
-
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.
-
-
-
-