搜索资源列表
DDA
- 用 DDA算法算法实现直线段的绘制。 已知直线段的两个端点坐标分别为 P1(0,0) 和 P2(600,200),请用 DDA 算法 绘制出连接 P1 和 P2 的线段。背景要求为黑色,线段要求为白色。 -DDA algorithm algorithm line segment drawn. The known coordinates of the two endpoints of the line segment P1 (0,0) P2 (600,200), respective
例2-4
- 绘制左上角点为P0(100,100),右下角点为P1(600,300)的矩形。矩形边界线为1像素宽的蓝线,矩形内部填充为绿色(Draw the left upper corner is P0 (100100), the lower right corner is P1 (600300) rectangle. The rectangle boundary line is 1 pixels wide blue line, and the inner rectangle is filled with