The selection of a brush or paint brush
in some graphics packages, especially the painting system, you can select different brushes and brush types directly. Options for this type include shapes, dimensions, and patterns for brushes or brushes. Figure 4.7 shows some possible brushes and brush shapes. These shapes can be stored in a pixel template as numeric values in pixel locations, and then set to the line path. For example, a rectangle brush can be used as a template given in Figure 4.8, as shown in 4.9 by moving the path along the center (or corner) of the template. To avoid repeating pixel settings in the frame cache, you can simply accumulate horizontal segments that are generated at each location in the template and track the starting and ending X positions along each scan line.
by changing the size of the template, a line created with a brush (or brush) shape can have a variety of widths. For example, the rectangular pen line in Figure 4.9 can be shrunk to a 2 x 2 rectangle template or to a 4 x 4 template. You can also display a line segment by the selected pattern by adding the figure counterfeited to the brush and brush markers.
Computer Graphics (iii) _ Attributes of _4_ lines properties of _3_ brushes or brush selection