Pen class
Immutable description of a stroke: a brush, a thickness, and a stroke style.
A pen owns no native resources and is never disposed; instances are safe to share across threads and carry value equality.
public sealed class Pen : IEquatable<Pen>Public Members
Section titled “Public Members”| name | description |
|---|---|
| Pen(…) | Creates a pen that strokes with brush. (2 constructors) |
| Brush { get; } | Gets the brush used to paint the stroke. |
| StrokeStyle { get; } | Gets the stroke style (line cap, line join, miter limit, dashes). |
| Thickness { get; } | Gets the stroke thickness in device-independent pixels (DIPs). |
| override Equals(…) | |
| Equals(…) | |
| override GetHashCode() |
See Also
Section titled “See Also”- namespace Aprillz.MewUI.Rendering