Packages

 

com.aspose.imaging.imageoptions

Class JpegOptions

    • Constructor Detail

      • JpegOptions

        public JpegOptions()

        Initializes a new instance of the JpegOptions class.

      • JpegOptions

        public JpegOptions(JpegOptions jpegOptions)

        Initializes a new instance of the JpegOptions class.

        Parameters:
        jpegOptions - The JPEG options.
    • Method Detail

      • getDefaultMemoryAllocationLimit

        public int getDefaultMemoryAllocationLimit()

        Gets the default memory allocation limit.

        Returns:
        The default memory allocation limit.
      • setDefaultMemoryAllocationLimit

        public void setDefaultMemoryAllocationLimit(int value)

        Sets the default memory allocation limit.

        Parameters:
        value - The default memory allocation limit.
      • getJfif

        public JFIFData getJfif()

        Gets the jfif.

      • setJfif

        public void setJfif(JFIFData value)

        Sets the jfif.

      • getComment

        public String getComment()

        Gets the jpeg file comment.

      • setComment

        public void setComment(String value)

        Sets the jpeg file comment.

      • getExifData

        public JpegExifData getExifData()

        Get or set exif data container

      • setExifData

        public void setExifData(JpegExifData value)

        Get or set exif data container

      • getCompressionType

        public int getCompressionType()

        Gets the compression type.

      • setCompressionType

        public void setCompressionType(int value)

        Sets the compression type.

      • getColorType

        public int getColorType()

        Gets the color type for jpeg image.

      • setColorType

        public void setColorType(int value)

        Sets the color type for jpeg image.

      • getBitsPerChannel

        public byte getBitsPerChannel()

        Gets bits per channel for lossless jpeg image. Now we support from 2 to 8 bits per channel.

      • setBitsPerChannel

        public void setBitsPerChannel(byte value)

        Sets bits per channel for lossless jpeg image. Now we support from 2 to 8 bits per channel.

      • getQuality

        public int getQuality()

        Gets image quality.

      • setQuality

        public void setQuality(int value)

        Sets image quality.

      • getScaledQuality

        public int getScaledQuality()

        The scaled quality.

      • getRdOptSettings

        public RdOptimizerSettings getRdOptSettings()

        Gets the RD optimizer settings.

        Returns:
        The RD optimizer settings.
      • setRdOptSettings

        public void setRdOptSettings(RdOptimizerSettings value)

        Sets the RD optimizer settings.

        Parameters:
        value - The RD optimizer settings.
      • getRgbColorProfile

        public StreamSource getRgbColorProfile()

        The destination RGB color profile for CMYK jpeg images. Use for saving images. Must be in pair with CMYKColorProfile for correct color conversion.

      • setRgbColorProfile

        public void setRgbColorProfile(StreamSource value)

        The destination RGB color profile for CMYK jpeg images. Use for saving images. Must be in pair with CMYKColorProfile for correct color conversion.

      • getCmykColorProfile

        public StreamSource getCmykColorProfile()

        The destination CMYK color profile for CMYK jpeg images. Use for saving images. Must be in pair with RGBColorProfile for correct color conversion.

      • setCmykColorProfile

        public void setCmykColorProfile(StreamSource value)

        The destination CMYK color profile for CMYK jpeg images. Use for saving images. Must be in pair with RGBColorProfile for correct color conversion.

      • getJpegLsAllowedLossyError

        public int getJpegLsAllowedLossyError()

        Gets the JPEG-LS difference bound for near-lossless coding (NEAR parameter from the JPEG-LS specification).

      • setJpegLsAllowedLossyError

        public void setJpegLsAllowedLossyError(int value)

        Sets the JPEG-LS difference bound for near-lossless coding (NEAR parameter from the JPEG-LS specification).

      • getJpegLsInterleaveMode

        public int getJpegLsInterleaveMode()

        Gets the JPEG-LS interleave mode.

      • setJpegLsInterleaveMode

        public void setJpegLsInterleaveMode(int value)

        Sets the JPEG-LS interleave mode.

      • getHorizontalSampling

        public byte[] getHorizontalSampling()

        Gets the horizontal subsamplings for each component.

      • setHorizontalSampling

        public void setHorizontalSampling(byte[] value)

        Sets the horizontal subsamplings for each component.

      • getVerticalSampling

        public byte[] getVerticalSampling()

        Gets the vertical subsamplings for each component.

      • setVerticalSampling

        public void setVerticalSampling(byte[] value)

        Sets the vertical subsamplings for each component.

      • getSampleRoundingMode

        public int getSampleRoundingMode()

        Gets the sample rounding mode to fit an 8-bit value to an n-bit value. P:JpegOptions.BitsPerChannel

      • setSampleRoundingMode

        public void setSampleRoundingMode(int value)

        Sets the sample rounding mode to fit an 8-bit value to an n-bit value. P:JpegOptions.BitsPerChannel

      • getPreblendAlphaIfPresent

        public boolean getPreblendAlphaIfPresent()

        Gets a value indicating whether red, green and blue components should be mixed with a background color, if alpha channel is present.

      • setPreblendAlphaIfPresent

        public void setPreblendAlphaIfPresent(boolean value)

        Sets a value indicating whether red, green and blue components should be mixed with a background color, if alpha channel is present.