1. The app calculates the rect by multiplying the column and row position by the size of each chip.
这个计算通过行和列的位置和每个块的大小来得到矩形区域。
来自互联网
2. Any new shapes drawn after the translate function appears using the offset; so in this case, the rect function actually creates a square at 100, 100, 150, 150, as shown in Figure 1, cell a.
3. And the way area can be calculated for rect obj is.
然后我们就可以这样调用计算它的面积了。
来自互联网
4. The rect function draws a rectangle, with the first two points defining the location and the next two defining width and height, respectively.
rect函数可绘制一个矩形,并且前两个点定义位置,而后面两个点则分别定义宽度和高度。
来自互联网
5. For example, the code in Listing 1 draws a square using the rect function, then specifies a change to the coordinate system using translate.
例如,清单1所示代码使用rect函数绘制了一个正方形,然后使用translate修改坐标系统。
来自互联网
6. I offset the values of the row and column by one to calculate the lower right portion of the rect.
用计算偏移行和列的数值使得矩形区域的右下角。
来自互联网
7. The paint structure contains a rect data structure that has the smallest rectangle that completely encloses the update region and a flag that specifies whether the background has been erased.