imbSCI.Graph.MXGraph.canvas Namespace |
| Class | Description | |
|---|---|---|
| mxBasicCanvas |
Basic implementation of a canvas that draws a graph.
| |
| mxGdiCanvas |
Implementation of a canvas that uses GDI for painting.
| |
| mxGdiCanvas2D |
Used for exporting images.
To render to an image from a given XML string, graph size and
and background color, the following code is used:
Text rendering is available for plain text only, with optional word wrapping.
1Image image = mxUtils.CreateImage(width, height, background); 2Graphics g = Graphics.FromImage(image); 3g.SmoothingMode = SmoothingMode.HighQuality; 4mxSaxOutputHandler handler = new mxSaxOutputHandler(new mxGdiCanvas2D(g)); 5handler.Read(new XmlTextReader(new StringReader(xml))); | |
| mxStencil |
Implements a stencil for the given XML definition. This class implements the mxGraph
stencil schema.
| |
| mxStencilRegistry |
| Interface | Description | |
|---|---|---|
| mxICanvas |
Defines the requirements for a canvas that paints the vertices and
edges of a graph.
| |
| mxICanvas2D |
Defines the requirements for a canvas that paints the vertices and
edges of a graph.
|