导航:  GdiPlus Classes > Enumerations >

LineJoin

上一页返回章节概述下一页

The LineJoin enumeration specifies how to join two lines that are drawn by the same pen and whose ends meet. At the intersection of the two line ends, a line join makes the join look more continuous.

 

C++ Syntax

 

typedef enum {

LineJoinMiter = 0,

LineJoinBevel = 1,

LineJoinRound = 2,

LineJoinMiterClipped = 3

} LineJoin;

 

FreeBASIC 语法

 

enum

LineJoinMiter = 0

LineJoinBevel = 1

LineJoinRound = 2

LineJoinMiterClipped = 3

end enum

 

常数

 

LineJoinMiter

 

Specifies a mitered join. This produces a sharp corner or a clipped corner, depending on whether the length of the miter exceeds the miter limit.

 

LineJoinBevel

 

Specifies a beveled join. This produces a diagonal corner.

 

LineJoinRound

 

Specifies a circular join. This produces a smooth, circular arc between the lines.

 

LineJoinMiterClipped

 

Specifies a mitered join. This produces a sharp corner or a beveled corner, depending on whether the length of the miter exceeds the miter limit.

 

备注

 

The miter length is the distance from the intersection of the line walls on the inside of the join to the intersection of the line walls outside of the join. The miter length can be large when the angle between two lines is small. The miter limit is the maximum allowed ratio of miter length to stroke width. The default value is 10.0f.

 

When using LineJoinMiter and the actual ratio exceeds the miter limit, the corner is clipped perpendicular to the miter at a distance from the inner corner that is the product of the miter limit and the pen width.

 

 

When using LineJoinMiterClipped and the miter limit is exceeded, the join is drawn as if its type were LineJoinBevel; that is, when the line walls on the inside of the join meet, then a joining line is drawn between the line walls on the outside of the join.