在Windows中它是非常快的,因为Windows允许创建一个本地分配图像可以从Windows接收的绘制画布。
In Windows it is very fast because Windows allows creating a locally allocated image which can receive drawings from a Windows Canvas.
现在我们有了一张画布,让我们绘制一些标记来显示沿着标尺的不同点。
Now that we have a canvas, let's draw marks to show the various points along the ruler.
只要一支手写笔,或者一只鼠标,用户就可以在画布上绘制图片,且这并不需要程序员来跟踪或处理任何事件。
Using a stylus, or alternately a mouse, users can draw on the canvas without the developer needing to directly deal with tracking events.
在这个示例中,您已经看到了许多最重要的、也是最常使用的画布api,但还有其他几个API(比如用于绘制曲线)。
You have seen many of the most important and most commonly used canvas APIs in this example, but there are several other APIs (such as for drawing curves).
现在在水彩图层之上再新建一个图层,然后从下至上从黑色到透明做线性递减绘制,这样基本上整个画布到底部就褪化为黑色了。
Now in a new layer above the watercolor layer, and drawing straight up, make a Linear Gradient going from black to transparency so that afterwards your canvas basically fades to black down the bottom.
这种新标记是一个画布,可以在其上绘制直线和矩形、放置图片、进行旋转等。
This new tag is a graphics canvas on which you can draw lines and rectangles, place images, perform rotations, and more.
不管那个艺术家是谁,X光检查显示该画是水平绘制的,而毕加索则将画布旋转了90度并完成了《演员》这幅作品。
Whoever the artist was, the X-rays showed that the landscape was painted horizontally, and that Picasso rotated the canvas for the vertical composition of "the Actor."
有时,我需要在一张图像或一块空白画布上绘制几根线条和一些文本。
Sometimes I need to draw a few lines or some text on an image or a blank canvas.
超类的方法应该进行调用,但在这种情况,我们在画布上绘制。
The superclass method should be invoked, but in this case, we do.
绘制出你的图标环绕在画布中心,使环绕相当大。
Draw out your icon surround in the center of the canvas, make the surround fairly big.
自定义背景-选择下方的画布上绘制一个平面,条纹或方格背景(甚至是自定义图像)。
Custom Backgrounds - Pick a flat, striped or checkered background (or even a custom image) to be drawn beneath the canvas.
我画4层叠矩形,绕一个点在画布上,然后再次绘制相同的形状,但堆叠的矩形没有保持完全一致。
I am drawing 4 stacked rectangles, rotating the canvas about a point and then drawing that same shape again but the stacked rectangles aren't remaining completely aligned.
将指定物件的表示值绘制到指定的画布上。
Paints a representation of the value of the specified object to the specified canvas.
将指定物件的表示值绘制到指定的画布上。
Paints a representation of the value of the specified object to the specified canvas.
应用推荐