|
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.Action
class Action
Object allows to build chains of action It instance is pass as a parameter to closure that user define and pass to execute method as parameter
Property Summary | |
---|---|
def |
fileName
Name of output file It is always return as a result of action |
ImageFile |
loadedImage
Image that is set to manipulate |
Constructor Summary | |
Action()
|
Method Summary | |
---|---|
def
|
crop(def deltaX, def deltaY, def width, def height)
Method allows to crop specified region from image or delta is smaller than 0 or crop region dimension is smaller or equal zero or crop region is beyond the image |
def
|
scaleAccurate(def width, def height)
Method allows to scale image with accurate width and height Width and height will be always (almost ;)) equals to set parameters Image will no be deformed but first scaled and next cropped on the center (if it will necessary) |
def
|
scaleApproximate(def width, def height)
Method allows to scale image with approximate width and height Width and height of image will never be greater than parameters width and height but it could be lover (image could not be deformed) |
def
|
text(Color color, Font font, groovy.lang.Closure typist)
Method allows to type text on image |
def
|
text(Color color, groovy.lang.Closure typist)
Method allows to type text on image |
def
|
text(Font font, groovy.lang.Closure typist)
Method allows to type text on image |
def
|
text(groovy.lang.Closure typist)
Method allows to type text on image |
def
|
watermark(def watermarkPath, def position = [:], def alpha = 1f)
Method allows to add watermark to image |
Methods inherited from class java.lang.Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Property Detail |
---|
def fileName
ImageFile loadedImage
Constructor Detail |
---|
Action()
Method Detail |
---|
public def crop(def deltaX, def deltaY, def width, def height)
public def scaleAccurate(def width, def height)
public def scaleApproximate(def width, def height)
public def text(Color color, Font font, groovy.lang.Closure typist)
public def text(Color color, groovy.lang.Closure typist)
public def text(Font font, groovy.lang.Closure typist)
public def text(groovy.lang.Closure typist)
public def watermark(def watermarkPath, def position = [:], def alpha = 1f)
Groovy Documentation