import groovy.swing.j2d.svg.*
gr = new SVGRenderer()
gr.renderToFile("sample981a.svg", 200, 200){
background(color: color("#88aadd"))
fishShape( x:0, y:40, width:200, height:120,
fill: color("#bbddff"),
borderColor: color("#103080"),
borderWidth: 2
)
}
出力SVG(sample981a.svg)をPNGにレンダリングした画像

動作環境
Groovy1.6.0, JDK1.6 Update12
No comments:
Post a Comment