src.groovy.pl.burningice.plugins.image.engines.scale
Class ImageMagickScaleEngine
java.lang.Object
src.groovy.pl.burningice.plugins.image.engines.scale.ImageMagickScaleEngine
class ImageMagickScaleEngine
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
- author:
- Pawel Gdula
Method Summary |
protected BufferedImage
|
bytesToBufferedImage(byte[] image)
|
BufferedImage
|
execute(ImageFile loadedImage, int width, int height)
|
protected byte[]
|
scaleImage(byte[] image, Dimension currentSize, Dimension requestedSize)
|
Methods inherited from class java.lang.Object
|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
ImageMagickScaleEngine
ImageMagickScaleEngine()
-
bytesToBufferedImage
protected BufferedImage bytesToBufferedImage(byte[] image)
-
execute
public BufferedImage execute(ImageFile loadedImage, int width, int height)
-
scaleImage
protected byte[] scaleImage(byte[] image, Dimension currentSize, Dimension requestedSize)
-
Groovy Documentation