# IShapeMask interface

Namespace: [Grasshopper2.Imaging.Shaders](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.imaging.shaders.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public interface IShapeMask
```

Provides the core interface for all shape masks used in imaging filters and effects.

**Derived types:** [BoxMask](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.boxmask.md), [CircleMask](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.circlemask.md)

## Properties

- [Geometry](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.ishapemask/geometry.md): Gets the geometry of this mask.
- [RowCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.ishapemask/rowcount.md): Gets the number of distinct rows in this mask.
- [Rows](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.ishapemask/rows.md): Enumerate over all rows in the mask.
- [SampleCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.ishapemask/samplecount.md): Gets the area (number of samples) of this mask.
- [Samples](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.ishapemask/samples.md): Enumerate over all sample offsets.

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.ishapemask/item.md): Gets the row at the given index.
