Class JAIJPEGWriter

    • Field Detail

      • quality

        public IntRangeParameter quality
        The quality of the file written. The quality ranges from 0 which is a high amount of compression, small file size, and poor picture quality, to 100, which is no compression, larger file size, and high picture quality.
      • restartInterval

        public Parameter restartInterval
        The restart interval in number of JPEG Minimum Coded Units (MCUs). JPEG images can use these restart markers to periodically delineate image segments to limit the effect of bitstream errors to a single interval. The default is zero.
      • writeJFIFHeader

        public Parameter writeJFIFHeader
        If true (the default), the encoder will write a JFIF header, using a marker.The marker includes data such as version number, x and y pixel density, pixel aspect ratio. If false, then the encoder will not write a JFIF header.
    • Method Detail

      • postfire

        public boolean postfire()
                         throws IllegalActionException
        Read an input JAIImageToken and write it to the file. If the file does not exist then create it. If the file already exists, then query the user for overwrite.
        Specified by:
        postfire in interface Executable
        Overrides:
        postfire in class JAIWriter
        Returns:
        True if the execution can continue.
        Throws:
        IllegalActionException - If the file cannot be opened or created, if the user refuses to overwrite an existing file, of if the image in unable to be encoded.