Draws an image. An Image operation can work as a wrapper for another image operation, in the same way that paint works. It also accepts transformations.
Properties
Property | Default | Notes |
|---|---|---|
x | |
|
y | |
|
image |
| must be a java.awt.Image, an image or shape operation |
classpath |
| String |
url |
| URL or String |
file |
| File or String |
opacity | | controls how much of the image is visible, value must be in the range [0..1] |
asImage | | if true will skip drawing the image right away, useful for texture painting |
You must specify ate least any of [image,classpath,url,file]
Example
| Code Block |
|---|
image( url: 'http://groovy.codehaus.org/download/attachments/1866/groovydukemed.jpg' ) |
