代码的下一部分将读取 Echo Tops 图像并根据图像中每个像素的颜色记录相应高度设置。
The next section of code will read the Echo Tops image and record the appropriate setting of altitude based on the color of each pixel in the image.
panel 类将把元素的边界设为设备框的大小,添加 10 个像素的填充,并且设置页面的背景颜色和条纹。
The panel class sets the element's border to the size of the device box, adds 10 pixels of padding, and puts the background color and pinstripes on the page.
在本例中,我们创建了一个颜色实例并用它来设置显示窗口内的某个像素点(参见清单2和图3中的cell b)。
In this case, you create a color instance and use it to set a particular pixel within the display window (see Listing 2 and Figure 3, cell b).
应用推荐