import groovy.swing.j2d.*
def gr = new GraphicsRenderer()
gr.renderToFile("sample786a.png", 200, 200){
antialias("on")
arrow( x: 100, y: 100, width: 100, height: 50,
angle:45,
fill: color("#bbddff"),
borderColor: color("#103080"),
borderWidth: 2
)
}
出力画像(sample786a.png)
動作環境
Groovy1.6.0 Beta2, JDK1.6 Update11
No comments:
Post a Comment