2D Objects Properties - Stroke Miter Limit


Advertisements


This property is of the type double. It represents the limit for the distance between the inside point of the joint and the outside point of the joint. If the distance between these two points exceeds the given limit, the miter is cut at the edge.

You can set value to this property using the method setStroke() as follows −

path.setStrokeMiterLimit(4);

By default, the stroke miter limit value id 10 of the stroke is black. Following is a diagram of a triangle with different stroke limits.

Stroke Limit
javafx_2d_shapes.htm

Advertisements