该算法可适用于任意形状区域的填充,且在填充效率上非常接近仅适用于矩形区域填充的标准矩形填充算法。
This algorithm can be used to fill in any desired region and its filling efficiency is close to that of standard rectangle filling algorithm.
现在我们可以开始来查看样例代码了,它包含了前面介绍的初始化工作,以及处理单个像素、填充矩形和渲染文本的函数。
At this point you can take a look at the sample code which includes the initialization I described earlier, as well as functions to plot single pixels, draw filled rectangles, and render text.
然后创建一个矩形,并在其中填充图片。
It then creates a rectangle shape and fills it with the image.
最后,这段代码将矩形的背景填充为灰色。
Finally, this snippet paints the rectangle's background as grey.
然后,在代码体中(defs之外),我在整个页面上绘制了一个矩形,用线条模式进行填充。
Then, in the body (outside the defs) I draw a rectangle over the whole page, filling it with the line pattern.
国际象棋的棋盘较小:有六十四个矩形,其中三十二个填充棋子。
Chess has a small board: 64 squares and up to 32 pieces to fill them.
渐变填充矩形是我的死穴-每次我遇到不太灵光的设计方案的时候我都会有这个习惯。
Gradient rectangles are my crutch - I have a terrible habit of using them whenever I feel like a design isn't working.
工具-利用图像编辑器广泛像素的艺术创作工具:铅笔,橡皮擦,吸管,缩放,矩形选择,魔术棒,套索,移动,填充,线条,矩形和椭圆形。
Tools - Leverage Image Editor wide array of tools when composing pixel art: Pencil, Eraser, Eyedropper, Zoom, Rectangular Selection, Magic Wand, Lasso, Move, Fill, Line, Rectangle, and Ellipse.
绘制一个矩形选区,填充红色背景纹理之上的一层。
Draw a rectangular selection and fill it with red on a layer above the background texture.
使用矩形选框工具(米),填充白色显示一个新的层中进行选择。
Using the Rectangular Marquee Tool (M), fill a selection with white on a new layer as shown.
选择矩形选框工具(M)和在新的图层填充黑色选择。
Select the Rectangular Marquee Tool (M), and on a new layer fill a selection with black.
渲染矩形选框工具(M),在选择的区域中右击,从选项列表中选择填充。
Select the Rectangular Marquee Tool, (m), right click inside the selected areas and choose Fill... from the list of options.
显示如何使用水平线性渐变画笔填充线条、椭圆和矩形。
Shows how to fill a line, an ellipse, and a rectangle with a horizontal linear gradient brush.
将窗体的世界变换重置为一个单位矩阵并用纯红色画笔填充一个矩形。
Resets the world transform of the form to an identity and fills a rectangle with a solid red brush.
还原经过平移的图形状态并用纯蓝色画笔填充一个矩形。
Restores the translated graphics state and fills a rectangle with a solid blue brush.
用纯黑色画笔填充一个大矩形。
我做了一个简单的计算和把可用空间划分成3等宽的矩形,并有25像素填充它们之间的空白。
I did a simple calculation and pied the available space into 3 equal width boxes with 25 pixels padding between them.
新建一个层,用圆角矩形工具画一个竖条形图案,填充颜色,如下图所示。
Now open new layer and with Rounded Rectangle Tool make shape like in picture. then color him.
结果只有两个矩形的交集是用蓝色填充的。
The result is that only the intersection of the two rectangles is filled with blue.
使用矩形工具画一个长方形,填充任何颜色都可以。
Make a rectangle with the rectangle Tool (any color) and Rasterize it.
该代码用渐变画笔填充椭圆和矩形。
The code fills an ellipse and a rectangle with the gradient brush.
正如瓷砖可一块挨一块地放置以覆盖地面一样,矩形图像也可一个挨一个地放置以填充(平铺)形状。
Just as tiles can be placed next to each other to cover a floor, rectangular images can be placed next to each other to fill (tile) a shape.
用纯蓝色画笔填充包含前两个矩形的大矩形。
Fills a large rectangle that includes both previous rectangles with a solid blue brush.
注意:你不能使用视图控制器去管理只有一部分填充的视图-比如只被应用程序内容矩形框定义的一部分视图。
Note: You should not use view controllers to manage views that fill only a part of their window-that is, only part of the area defined by the application content rectangle.
使用纹理画笔填充矩形。
在站点管理中进行配置,选择将图片裁剪为矩形或让图片填充在一个矩形中。
Configure in site admin to select cropping images to square or scaling images to fit inside a square.
使用矩形选框工具(m)建立选区如图(3b)并填充白色。
Use the Rectangular Marquee Tool (m) to make a rectangle selection and fill it with white (3b).
绘制一个圆角矩形的矩形,并填充一个不错的背景图片喜欢你自己的桌面,在这里,我们使用的是从詹姆斯的图像。
Draw a rectangle inside of the rounded rectangle and fill it with a nice background image, like your own desktop. Here we're using an image from James White.
在第一个图中,填充了(2,1)至(5,5) 的矩形,整个区域的边界刚好落在像素边缘上,这样就可以得到的矩形有着清晰的边缘。
In the first grid image below, a rectangle from (2,1) to (5,5) is filled. The entire area between them (light red) falls on pixel boundaries, so the resulting filled rectangle will have crisp edges.
在第一个图中,填充了(2,1)至(5,5) 的矩形,整个区域的边界刚好落在像素边缘上,这样就可以得到的矩形有着清晰的边缘。
In the first grid image below, a rectangle from (2,1) to (5,5) is filled. The entire area between them (light red) falls on pixel boundaries, so the resulting filled rectangle will have crisp edges.
应用推荐