import griffon.builder.gfx.render.*
def gr = new GfxRenderer()
gr.renderToFile("sample1426a.png", 200, 200){
antialias("on")
rect( x: 10, y: 10, width: 180, height: 180,
arcWidth: 20, arcHeight:20,
borderColor: color("#aaccff")){
basicStroke(dash: (float[])[4f,4f], width:2)
}
}
出力画像(sample1426a.png)

動作環境
Groovy1.6.5, JDK6 Update16
No comments:
Post a Comment