A pen defines the characteristics of a line such as color and pattern (solid, dashed, etc.).
Lines, curves and borders are drawn using a pen. A pen defines how line ends are connected (
) and how open ends are drawn (
public class Pen : Object,ICloneable
Create a solid black pen that has a width of 1 user space unit.
Create a solid pen with given color that has a width of 1 user space unit.
Create a solid pen with given color and fractional width.
Create a solid pen with given color, fractional width and pattern.
How caps (end-points) are drawn.
Color of this pen.
How joints are drawn.
The Miter Limit imposes a maximum on the ratio of the miter length to the line width. When the limit is exceeded, the join is converted from a miter to a bevel. (default = 10.0)
Pattern of this pen.
Width of this pen.