Groovy Documentation

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


Constructor Summary
ImageMagickScaleEngine()

 
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
 

Constructor Detail

ImageMagickScaleEngine

ImageMagickScaleEngine()


 
Method Detail

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