# BoxMask class

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 sealed class BoxMask : IShapeMask
```

Represents a fast integer accurate AABB useful for sampling.

## Properties

- [Geometry](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.boxmask/geometry.md): Gets the geometry of this mask.
- [Height](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.boxmask/height.md): Gets the height of this mask.
- [RowCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.boxmask/rowcount.md): Gets the number of rows in this mask.
- [Rows](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.boxmask/rows.md): Enumerate over all rows in the mask.
- [SampleCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.boxmask/samplecount.md): Gets the area (number of samples) of this mask.
- [Samples](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.boxmask/samples.md): Enumerate over all sample offsets.
- [Width](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.boxmask/width.md): Gets the width of this mask.
- [X0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.boxmask/x0.md): The leftmost X coordinate.
- [Y0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.boxmask/y0.md): The topmost Y coordinate.

## Indexers

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

## Methods

- [Create](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.shaders.boxmask/create.md): (static) Create a new box mask.
