# GH_IconTable 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 sealed class GH_IconTable
```

Utility class for caching 32BppPArgb icons with fast lookup. Icons are hashed using a hashing algorithm to prevent identical entries.

## Properties

- [Count](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-icontable/count.md): (static) Gets the number of cached icons.

## Methods

- [Icon](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-icontable/icon.md): (static) Gets the icon at the specified index.
- [RegisterIcon](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-icontable/registericon.md): (static) Register a new icon with the table. If the supplied icon is a null reference, the NullIconIndex will be returned.
- [ResizeImage](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-icontable/resizeimage.md): (static) Create a new bitmap which is the resized version of an existing image.
- [To32BppArgb](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-icontable/to32bppargb.md): (static) Converts an image into 32BitPerPixelAlphaRedGreenBlue format.
- [To32BppPArgb](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-icontable/to32bpppargb.md): (static) Converts an image into 32BitPerPixelPremultipliedAlphaRedGreenBlue format. This format draws much faster in GDI+ operations. However, there will be no gain unless you cache the result of this function.
