# PixelIcon class

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

```cs
[IoId("00000000-c661-40c2-9323-56a2f3d911d3")]
public sealed class PixelIcon : AbstractIcon, IStorable
```

Implements IIcon for bitmap icons.

## Constructors

- [PixelIcon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.pixelicon/ctor.md): (3 overloads)

## Properties

- [ImageCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.pixelicon/imagecount.md): Gets the number of images stored in this icon.
- [LargestSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.pixelicon/largestsize.md): Gets the size of the largest image.
- [LargestSpan](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.pixelicon/largestspan.md): Gets the span (diagonal) of the largest image.
- [SmallestSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.pixelicon/smallestsize.md): Gets the size of the smallest image.
- [SmallestSpan](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.pixelicon/smallestspan.md): Gets the span (diagonal) of the smallest image.

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.pixelicon/item.md): Gets the image associated with the given index.

## Methods

- [BestMatch](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.pixelicon/bestmatch.md): Find the best match image for a specific span.
- [DrawInternal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.pixelicon/drawinternal.md)
- [ExactMatchOrLarger](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.pixelicon/exactmatchorlarger.md): (3 overloads) Find the image which matches the span or the first larger one. If there are no larger images, the largest possible image will be returned.
- [ExactMatchOrSmaller](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.pixelicon/exactmatchorsmaller.md): (3 overloads) Find the image which matches the span or the first smaller one. If there are no smaller images, the smallest possible image will be returned.
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.pixelicon/store.md)

## Inherited Members

- From [AbstractIcon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon.md): [States](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/states.md), [Type](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/type.md), [AddState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/addstate.md), [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/draw.md), [DrawDropShadow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/drawdropshadow.md), [DrawToBitmap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/drawtobitmap.md), [FindState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/findstate.md), [HandleStateChange](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/handlestatechange.md), [MoveState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/movestate.md), [SetState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/setstate.md)
