电子白板软件系统主要实现文件的新建,保存,颜色的编辑,画多边形,星形,椭圆,直线等。
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.
下一步也还是泛化。这次就是不光要画正方形了,要画一个多边形,可以指定边数的。下面是样例。
The next step is also a generalization. Instead of drawing squares, polygondraws regular polygons with any number of sides. Here is a solution.
用VCNET实现的CAD开发源程序,包括画直线,圆弧,多边形,图形打印等。
VC NET development of CAD source, including drawing straight lines, arcs, and polygons, graphics printing.
实现一个画图程序。要求能够画直线,圆弧,椭圆弧,多边形,能够自定义颜色。
Requirements can draw a straight line, arc, elliptical arc, polygon, to custom colors.
然后从远到近画物体(多边形),近的就因为优先级高而覆盖远的多边形。
Then from far to near objects paintings (Polygon), in the past because of the high priority and the coverage far polygon.
然后从远到近画物体(多边形),近的就因为优先级高而覆盖远的多边形。
Then from far to near objects paintings (Polygon), in the past because of the high priority and the coverage far polygon.
应用推荐