Computer Graphics (iii) _ Attributes of _4_ lines properties of _3_ brushes or brush selection

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.