... imageFilledRectangle // 画矩形并填充 imagePolygon // 画多边形 imageFilledPolygon // 画多边形并填充 ...
基于20个网页-相关网页
电子白板软件系统主要实现文件的新建,保存,颜色的编辑,画多边形,星形,椭圆,直线等。
Whiteboard software system can create and save new documents, edit colors, painting the polygon and star-shaped, oval, straight line and so on.
透明性是相关的,因为为了得到透明的权利,你需要从后到前画多边形(从最接近的)使用画家算法。
Transparency is relevant, because in order to get transparency right, you need to draw polygons from back to front (from farthest to closest) using painter's algorithms.
为了防止重画一个多边形,我们应当在每一个多边形上做一个标记,当多边形第一次被画的时候,设置这个标记当然画之前也要检查这个标记啦,不过肯定影响效率。
In order to prevent us from drawing one poly more than one time we should have a flag on each polygon which will be set if the poly is drawn for the first time.
应用推荐