# PixelSpace class

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

```cs
public sealed class PixelSpace
```

Provides fast mapping between pixel coordinates and bitnap array offsets.

## Constructors

- [PixelSpace](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.pixelspace/ctor.md): Constuct a new coordinate mapper.

## Properties

- [Height](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.pixelspace/height.md): Gets the height of the bitmap (in pixels).
- [LineSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.pixelspace/linesize.md): Gets the number of bytes for every line in the bitmap.
- [PixelSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.pixelspace/pixelsize.md): Gets the number of bytes per pixel.
- [Width](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.pixelspace/width.md): Gets the width of the bitmap (in pixels).

## Methods

- [IndexCoordinates](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.pixelspace/indexcoordinates.md): Gets the pixel coordinates associated with the specific byte offset. This function does not perform any bounds checking.
- [Offset](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.pixelspace/offset.md): Gets the byte offset for the given x, y coordinate. This function does not perform any bounds checking.
