GraphImage

public sealed class GraphImage : IDisposable
Represents a single image with a grid useful for creating function graphics.

Constructors

GraphImage

#
Create a new Graph image.
public GraphImage(
frame,
Frame of image.
grid
Grid properties.
)

GraphImage

#
Create a new Graph image.
public GraphImage(
width,
Width of image.
height,
Height of image.
unitSize,
Number of pixels per graph space unit.
origin,
Origin of grid in pixel coordinates.
grid
Grid properties.
)

GraphImage

#
Create a new Graph image with a default grid.
public GraphImage(
width,
Width of image.
height,
Height of image.
unitSize,
Number of pixels per graph space unit.
origin
Origin of grid in pixel coordinates.
)

GraphImage

#
Create a new Graph image with a default grid.
public GraphImage(
width,
Width of image.
height,
Height of image.
unitSize
Number of pixels per graph space unit.
)

Properties

Frame

#
Gets the frame projection for this image.
public FrameF Frame { get; }

Graphics

#
Gets the graphics object underlying this instance. This will be null once this instance has been disposed.
public Graphics Graphics { get; }

Grid

#
Gets the ortho grid hosted inside this image.
public OrthoGrid Grid { get; }

Image

#
Gets the bitmap underlying this instance. This will be null once this instance has been disposed.
public Bitmap Image { get; }

Methods

Dispose

#
public void Dispose()

DrawGraph

#
Draw a function into the image.
public void DrawGraph(
function,
Function to draw.
Pen
edge
Pen properties.
)

DrawGrid

#
Draw the grid into the image.
public void DrawGrid(
elements = GridElements.All
)

Project

#
Project a point from graph space into pixel space.
public PointF Project()

Project

#
Project a point from graph space into pixel space.
public PointF Project(
point
)

Save

#
Try and save the image to a file.
public void Save(
file
)