Class ImageQualityOptimizer

  • All Implemented Interfaces:

    
    public final class ImageQualityOptimizer
    
                        

    Optimizes image quality {@see #optimizeImage}

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public enum ImageQualityOptimizer.PaperFormat

      Contains common paper formats (width and height in inches)

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Bitmap optimizeImage(Bitmap bitmap, Float widthInches, Float heightInches, Long maxRequiredDpi) Scales image to desirable quality.
      final Bitmap optimizeImage(Bitmap bitmap, Long requiredDpi) Scales image to desirable quality.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageQualityOptimizer

        ImageQualityOptimizer()
    • Method Detail

      • optimizeImage

         final Bitmap optimizeImage(Bitmap bitmap, Float widthInches, Float heightInches, Long maxRequiredDpi)

        Scales image to desirable quality.

        Parameters:
        bitmap - you want to optimize
        widthInches -
        • suppositious physical width

        heightInches -
        • suppositious physical height

        maxRequiredDpi -
        • desirable quality

      • optimizeImage

         final Bitmap optimizeImage(Bitmap bitmap, Long requiredDpi)

        Scales image to desirable quality.

        Parameters:
        bitmap - you want to optimize
        requiredDpi -
        • desirable quality