com.aspose.cad.jasperreports.pdf

Enum ImageCompressionEnum

    • Enum Constant Detail

      • Auto

        public static final ImageCompressionEnum Auto

        Automatically selects the most appropriate compression for each image.

      • None

        public static final ImageCompressionEnum None

        Saves raw image bytes resulting in bigger pdf file sizes.

      • LzwBaselinePredictor

        public static final ImageCompressionEnum LzwBaselinePredictor

        Predictor selection is restricted to PNG Paeth predictor to speed-up the process. In practice performs surprisingly good. Better than LzwOptimizedPredictor.

      • LzwOptimizedPredictor

        public static final ImageCompressionEnum LzwOptimizedPredictor

        Predictor selection is more complicated and should result in smaller image sizes but taking more time. RFC 2083 says it is the best way to go. But on the test data baseline predictor LzwBaselinePredictor kicks ass leaving optimized predictor behing by 25-40% compression rate gains.

      • Jpeg

        public static final ImageCompressionEnum Jpeg

        Jpeg compression. Does not support transparency.

      • Ccitt3

        public static final ImageCompressionEnum Ccitt3

        /CCITTFaxDecode/DecodeParms/K 0/Columns 173 Does not support transparency.

      • Ccitt4

        public static final ImageCompressionEnum Ccitt4

        /CCITTFaxDecode/DecodeParms/K -1/Columns 173 Does not support transparency.

    • Method Detail

      • values

        public static ImageCompressionEnum[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ImageCompressionEnum c : ImageCompressionEnum.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ImageCompressionEnum valueOf(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getType

        public int getType()
        Gets the value that represents the type of the enum.
        Returns:
        the type