创建要在其中绘制图像的矩形。
创建在该处绘制图像的左上角的坐标。
Creates the coordinates at which to draw the upper-left corner of the image.
自动缩放的情况下绘制图像。
再次绘制图像。
创建定义平行四边形的点,要在该平行四边形中绘制图像。
Creates points that define a parallelogram in which to draw the image.
尤其是,它擦除控件的原有图像然后再在新位置重新绘制图像。
In particular, it erases the original image of the control and then repaints it in the new location.
图元文件(运行时绘制图像的图形指令列表)比位图更适合于拉伸图片。
Metafiles, which are lists of graphics instructions for drawing images at run time, are better suited for stretching than bitmaps are.
矩形的位置确定图像在屏幕上的位置,原始图像的大小和矩形的大小确定所绘制图像的缩放。
The position of the rectangle locates the image on the screen, and the size of the original image and the size of the rectangle determines the scaling of the drawn image.
你在这一部分可以学到如何组合界面元素,建立色彩渐变,绘制图像的反射,以及给图像加上滤镜。
It is here that you learn how to use composites, create gradients, draw reflections, and apply filters to images.
而如果绘制图像的第一个数据点起始数据不是100%,如果我们把后面同步变化的点拖动到一起会怎么样?
Rather than anchoring our projected values to the first data point of 100%, what happens if we anchor against a later point in the plot?
平行四边形的位置确定图像在屏幕上的位置,矩形的大小以及平行四边形的大小和形状确定所绘制图像的缩放和剪切。
The position of the parallelogram locates the image on the screen, and the size of the rectangle and the size and shape of the parallelogram determines the scaling and shearing of the drawn image.
我们认定,一个优秀的解决方案应该有一个新的称为RolloverImageIcon的类,我们将在其构造函数中给它提供一张图像,然后,这个类会在绘制图标之前对图标进行操作。
We decided that a good solution would be to have a new class called RolloverImageIcon that was given an image in its constructor and would then manipulate the icon before drawing it.
然后在图像的中心绘制图形的主标题和子标题。
The main title and subtitle for the graph are then drawn in the center of the image.
然后在图像的中心绘制图形的主标题和子标题。
The main title and subtitle for the graph are then drawn in the center of the image.
应用推荐