# GraphImage class

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

```cs
public sealed class GraphImage : IDisposable
```

Represents a single image with a grid useful for creating function graphics.

## Constructors

- [GraphImage](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.graphimage/ctor.md): (4 overloads) Create a new Graph image.

## Properties

- [Frame](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.graphimage/frame.md): Gets the frame projection for this image.
- [Graphics](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.graphimage/graphics.md): Gets the graphics object underlying this instance. This will be null once this instance has been disposed.
- [Grid](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.graphimage/grid.md): Gets the ortho grid hosted inside this image.
- [Image](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.graphimage/image.md): Gets the bitmap underlying this instance. This will be null once this instance has been disposed.

## Methods

- [Dispose](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.graphimage/dispose.md)
- [DrawGraph](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.graphimage/drawgraph.md): Draw a function into the image.
- [DrawGrid](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.graphimage/drawgrid.md): Draw the grid into the image.
- [Project](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.graphimage/project.md): (2 overloads) Project a point from graph space into pixel space.
- [Save](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.graphimage/save.md): Try and save the image to a file.
