CircleMask

References
public sealed class CircleMask : IShapeMask
Represents a fast integer accurate circle shape useful for sampling.

Properties

Geometry

#
Gets the geometry of this mask.
public ShapeMaskGeometry Geometry { get; }
Geometry

Radius

#
Gets the radius of this mask.
public int Radius { get; }

RowCount

#
Gets the number of rows in this mask.
public int RowCount { get; }
RowCount

Rows

#
Enumerate over all rows in the mask.
public IEnumerable<MaskRow> Rows { get; }
Rows

SampleCount

#
Gets the area (number of samples) of this mask.
public int SampleCount { get; }
SampleCount

Samples

#
Enumerate over all sample offsets.
public IEnumerable<Point> Samples { get; }
Samples

Indexers

this[]

#
Gets the row at the given index.
public MaskRow this[
index
Row index, must be strictly less than RowCount.
] { get; }
Row at given index.
this[]

Methods

Create

#
Create a new circle mask.
public static CircleMask Create(
radius
Radius of mask.
)
Mask.