# ScreenSampler class

Namespace: [Grasshopper2.UI.ColourPicker](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.colourpicker.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class ScreenSampler
```

Pick a colour off the screen.

## Constructors

- [ScreenSampler](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.screensampler/ctor.md): (2 overloads) Create a new screenpicker instance with a target bitmap size of one pixel.

## Properties

- [Radius](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.screensampler/radius.md): Gets or sets the radius of the colour sampling.
- [Size](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.screensampler/size.md): Gets the size of the screen picker region.

## Methods

- [Sample](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.screensampler/sample.md): (2 overloads) Sample the screen at a given location. This method may throw, you should only call it from a try...catch block.
