import java.awt.*
import groovy.swing.j2d.swf.*
def gr = new SWFRenderer()
gr.renderToFile("sample1058a.swf", 200, 200){
image(file: "sf.jpg")
font(new java.awt.Font('Tahoma', java.awt.Font.BOLD, 26))
text( x:10, y:100,
text: "San Francisco",
fill: new Color(0xbb, 0xdd, 0xff, 0xff),
borderColor: new Color(0x11, 0x33, 0x77, 0xff) )
}
出力SWF(sample1058a.swf)
動作環境
groovy 1.6.0, JDK6 update12
No comments:
Post a Comment