Package com.mortennobel.imagescaling
Class MultiStepRescaleOp
java.lang.Object
com.mortennobel.imagescaling.AdvancedResizeOp
com.mortennobel.imagescaling.MultiStepRescaleOp
- All Implemented Interfaces:
BufferedImageOp
This code is very inspired on Chris Campbells article "The Perils of Image.getScaledInstance()"
The article can be found here:
http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html
Note that the filter method is threadsafe
-
Nested Class Summary
Nested classes/interfaces inherited from class com.mortennobel.imagescaling.AdvancedResizeOp
AdvancedResizeOp.UnsharpenMask
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMultiStepRescaleOp
(int dstWidth, int dstHeight) MultiStepRescaleOp
(int dstWidth, int dstHeight, Object renderingHintInterpolation) MultiStepRescaleOp
(DimensionConstrain dimensionConstain) MultiStepRescaleOp
(DimensionConstrain dimensionConstain, Object renderingHintInterpolation) -
Method Summary
Modifier and TypeMethodDescriptiondoFilter
(BufferedImage img, BufferedImage dest, int dstWidth, int dstHeight) Methods inherited from class com.mortennobel.imagescaling.AdvancedResizeOp
addProgressListener, createCompatibleDestImage, filter, fireProgressChanged, getBounds2D, getPoint2D, getRenderingHints, getUnsharpenMask, removeProgressListener, setUnsharpenMask
-
Field Details
-
renderingHintInterpolation
-
-
Constructor Details
-
MultiStepRescaleOp
public MultiStepRescaleOp(int dstWidth, int dstHeight) -
MultiStepRescaleOp
-
MultiStepRescaleOp
-
MultiStepRescaleOp
-
-
Method Details
-
doFilter
- Specified by:
doFilter
in classAdvancedResizeOp
-