Class JPEGTranscoder

  • All Implemented Interfaces:
    Transcoder

    public class JPEGTranscoder
    extends ImageTranscoder
    This class is an ImageTranscoder that produces a JPEG image.
    • Field Detail

      • KEY_QUALITY

        public static final TranscodingHints.Key KEY_QUALITY
        The encoder quality factor key.
        Key: KEY_QUALITY
        Value: Float (between 0 and 1)
        Default: 0.75 (lossy)
        Required: Recommended
        Description: Specify the JPEG image encoding quality.
    • Constructor Detail

      • JPEGTranscoder

        public JPEGTranscoder()
        Constructs a new transcoder that produces jpeg images.
    • Method Detail

      • createImage

        public java.awt.image.BufferedImage createImage​(int width,
                                                        int height)
        Creates a new ARGB image with the specified dimension.
        Specified by:
        createImage in class ImageTranscoder
        Parameters:
        width - the image width in pixels
        height - the image height in pixels