Flash Player 10 使用绘图API
?
转自:http://sjkgxf7191.iteye.com/blog/520184Flash Player 10 使用绘图APIPOSTED BY CHENCHAO | FILED UNDER?3D相关
了解 Graphics 类
矢量
使用图形数据类
可以将全部绘制存储?在?IGraphicsData?类型的矢量对象数组 (Vector.<IGraphicsData>?) 中,该数组可以重复
用作其它形状实例的数据源,也可以存储绘制信息供以后使用。
GraphicsStroke
GraphicsSolidFill
GraphicsGradientFill
GraphicsShaderFill
GraphicsEndFill
GraphicsPath
GraphicsTrianglePath
路径
?View Code?ACTIONSCRIPT3?View Code?ACTIONSCRIPT3?View Code?ACTIONSCRIPT3?View Code?ACTIONSCRIPT3?View Code?ACTIONSCRIPT3?View Code?ACTIONSCRIPT3?View Code?ACTIONSCRIPT3?View Code?ACTIONSCRIPT3?View Code?ACTIONSCRIPT3?View Code?ACTIONSCRIPT3?View Code?ACTIONSCRIPT3?View Code?ACTIONSCRIPT3sprite.graphics.drawTriangles(vertices, indices, uvtData, TriangleCulling.NEGATIVE);