Java – using paint Setstrokejoin() and paint setStrokeMiter()

I am curious about what these methods do and how to use them, because there seems to be no detail except the single sentence description in JavaDocs:

setStrokeJoin

setStrokeMiter

Does anyone have some sample code or good description?

Solution

Setstrokejoin allows you to set three modes of how to render thick line connections Round indicates that the circular section is used to bypass the kink, bevel indicates that another short straight line segment is used perpendicular to the half angle, and miter indicates that the outer contour of the two connecting lines extends until it intersects However, when the angle is very sharp, the point can go far, so a limit is usually set. If some sharpness is reached, switch from miter to better This limit is controlled by setstrokemiter For example, see here

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>