在像素坐标与GD之间创建连接,并填充出差销售人员所跨越的地区。
Create connections between the pixel coordinates with GD and fill in the region bounded by your traveling salesperson.
现在我们可以开始来查看样例代码了,它包含了前面介绍的初始化工作,以及处理单个像素、填充矩形和渲染文本的函数。
At this point you can take a look at the sample code which includes the initialization I described earlier, as well as functions to plot single pixels, draw filled rectangles, and render text.
使用这些像素坐标,我们可以绘制以这些点为起点的直线,重新设定直线的颜色、连接直线、用颜色填充周围的区域或者 GD 可以执行的任何其他操作。
With these pixel coordinates, we can draw lines emanating from the the points, recolor them, connect them, fill the surrounding area with color, or anything else GD can do.
应用推荐