import groovy.swing.j2d.svg.*
gr = new SVGRenderer()
gr.renderToFile("sample965a.svg", 200, 200){
cross( cx: 100, cy: 100, width:20, radius:50,
fill: color("#bbddff"),
borderColor: color("#103080"),
borderWidth: 2
)
}
出力SVG(sample965a.svg)をPNGにレンダリングした画像

動作環境
Groovy1.6.0, JDK1.6 Update12
関連項目
groovyで十字形を描画する (GraphicsRendererでの同様の処理)
No comments:
Post a Comment