CircleMask

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

Properties

Geometry

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

Radius

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

RowCount

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

Rows

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

SampleCount

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

Samples

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

Indexers

this[]

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

Methods

Create

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