# IMapSampler interface

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

```cs
public interface IMapSampler
```

Represents methods to sample a NumberMap at integral and partial coordinates.

## Methods

- [IntegrateCircle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.imapsampler/integratecircle.md): Gets the average value within a circle.
- [IntegrateEllipse](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.imapsampler/integrateellipse.md): Gets the average value within a circle.
- [IntegrateRectangle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.imapsampler/integraterectangle.md): (2 overloads) Gets the average value within a sample aligned box.
- [InterpolateCubic](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.imapsampler/interpolatecubic.md): Sample the map at a partial coordinate using cubic interpolation.
- [InterpolateHermite](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.imapsampler/interpolatehermite.md): Sample the map at a partial coordinate using hermite interpolation.
- [InterpolateLinear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.imapsampler/interpolatelinear.md): Sample the map at a partial coordinate using linear interpolation.
- [InterpolateNearest](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.imapsampler/interpolatenearest.md): Sample the map at a partial coordinate using nearest interpolation.
- [ProjectX](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.imapsampler/projectx.md): (2 overloads) Project an x coordinate into the interior map space.
- [ProjectY](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.imapsampler/projecty.md): (2 overloads) Project an y coordinate into the interior map space.
- [ValueAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.imapsampler/valueat.md): Sample the map at an integral coordinate.
