# GH_MaterialPreview class

Namespace: [Grasshopper.GUI](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_MaterialPreview
```

Class for generating Preview Material thumbnails.

## Properties

- [Colour](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-materialpreview/colour.md): Gets or sets the colour of the material preview.
- [Selected](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-materialpreview/selected.md): Gets or sets the Selected state of this preview.

## Methods

- [Image](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-materialpreview/image.md): Gets the default bitmap preview for the current material. The default size is 100x100 pixels. If you want a smaller size then use the Thumbnail() function instead.
- [Thumbnail](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-materialpreview/thumbnail.md): Gets a thumbnail of the preview, without any selection widgets drawn in.
