Package io.scanbot.sdk.util.bitmap
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)
-
Constructor Summary
Constructors Constructor Description ImageQualityOptimizer()
-
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. -
-
Method Detail
-
optimizeImage
final Bitmap optimizeImage(Bitmap bitmap, Float widthInches, Float heightInches, Long maxRequiredDpi)
Scales image to desirable quality.
- Parameters:
bitmap
- you want to optimizewidthInches
-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 optimizerequiredDpi
-desirable quality
-
-
-
-