|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectsrc.groovy.pl.burningice.plugins.image.engines.scale.JaiScaleEngine
src.groovy.pl.burningice.plugins.image.engines.scale.JaiApproximateScaleEngine
class JaiApproximateScaleEngine extends JaiScaleEngine
Class allows to scale image with approximate width and height Result image will not contain exact width and height given by user if there will be image deformation
Property Summary | |
---|---|
protected def |
resizeByScale
Resize option for scale > 1 |
protected def |
resizeBySubsampleAverage
Resize option for scale <= 1 |
Constructor Summary | |
JaiApproximateScaleEngine()
|
Method Summary | |
---|---|
protected def
|
resize(def scale)
We provide two types of image resize to eliminate situation when scale is > 1, for such action SubsampleAverage throw exception For this situation we resize image by "scale" |
protected def
|
scaleImage(def image, def width, def height)
|
Methods inherited from class JaiScaleEngine | |
---|---|
execute, scaleImage |
Property Detail |
---|
protected def resizeByScale
protected def resizeBySubsampleAverage
Constructor Detail |
---|
JaiApproximateScaleEngine()
Method Detail |
---|
protected def resize(def scale)
protected def scaleImage(def image, def width, def height)
Groovy Documentation