GDI + Learning Record (2): Paint line cap-cap

Source: Internet
Author: User
// Line cap var G: tgpgraphics; P: tgppen; begin G: = tgpgraphics. create (canvas. handle); P: = tgppen. create (aclblue, 8); p. setstartcap (linecaparrowanchor); {start line cap} p. setendcap (linecaproundanchor); {finish line cap} G. drawline (p, 20, 20,300,175); p. free; G. free; end;

  

Line cap style sheet:

Delphi Microsoft description
linecapanchormask anchormask specifies the mask used to check whether the wire cap is an anchor cap.
linecaparrowanchor arrowanchor specifies an arrow-shaped anchor cap.
linecapcustom Custom specify the custom line cap.
linecapdiamondanchor diamondanchor specify the Diamond Head cap.
linecapflat flat specify the flat cap.
linecapnoanchor noanchor no anchor is specified.
linecapround round specify the circle cap.
linecaproundanchor roundanchor specifies the round anchor cap.
linecapsquare Square specify a line cap.
linecapsquareanchor squareanchor the specified side of the anchor cap.
linecaptriangle triangle specifies the triangle cap.

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.