然后绘制矩形,并且矩形沿着该路径进行移动。
从堆栈中取出坐标,绘制一个绿色矩形,以便删除之前的转换和缩放。
Pop the stack and draw a green rectangle to remove the previous translation and scaling.
这里绘制了一个矩形、一个透明的圆和一个三角形。
Here a simple square is drawn, with a transparent circle and triangle.
这个例子里,我们绘制六个不同的矩形。
绘制一个按钮的小圆角矩形。
创建第一个矩形并用黑色将其绘制到屏幕。
Create the first rectangle and draw it to the screen in black.
绘制在镜头前矩形选区。
论我们刚才创建的形状的顶部,绘制一个黑暗的圆角矩形。
On top of the shape we have just created, draw a dark rounded rectangle.
创建要在其中绘制图像的矩形。
上绘制一个圆角矩形对面。
创建与第一个矩形相交的第二个矩形并用红色将其绘制到屏幕。
Create the second rectangle and draw it to the screen in red.
反复调用该成员函数以重新绘制一个拖动的矩形。
Call this member function repeatedly to redraw a drag rectangle.
反复调用该成员函数以重新绘制一个拖动的矩形。
Call this member function repeatedly to redraw a drag rectangle.
应用推荐