Class PatternFill
A two-colour tiled pattern interior paint for a VectorPath.
public sealed class PatternFill : IEquatable<PatternFill>
- Inheritance
-
PatternFill
- Implements
- Inherited Members
Remarks
The tile is an 8x8 monochrome bitmap packed into a ulong: the most significant byte is the top row and bit 7 of each byte is its leftmost pixel. A set bit paints Foreground and a clear bit Background; a null background leaves those pixels untouched, which is how a pattern over existing content stays transparent between its marks. The tile is stated in device-independent cells and the renderer decides how large a cell is, so a pattern is not resolution-locked.
Constructors
- PatternFill(ulong, ColorRgb, ColorRgb?)
Initializes a pattern fill.
Properties
- Background
Gets the colour painted where a tile bit is clear, or null when those pixels are left alone.
- Foreground
Gets the colour painted where a tile bit is set.
- Tile
Gets the 8x8 tile bits.
Methods
- Equals(PatternFill?)
Determines equality.
- Equals(object?)
Determines equality.
- GetHashCode()
Computes a hash code.