Properties
DrawingBox
#public Rectangle DrawingBox { get; }
Gets the 2D domain of the diagram in image coordinates.
IgnoreSelectedStates
#Gets or sets the Ignore Selected State flag. When set to True, selected objects are not drawn in a different colour.
Image
#public Bitmap Image { get; }
Gets the diagram image (only available after a call to PaintDiagram().
Methods
PaintDiagram
#Paint a diagram of a document.
Parameters:
| objs (IEnumerable<IGH_DocumentObject>) | Objects to paint. |
| approx_size (int) | Approximate size along each side. |
| inflate (int) | Padding around the objects. |
Returns: True on success, false on failure.
PaintDiagram
#public bool PaintDiagram(IEnumerable<IGH_DocumentObject> objs, int mapWidth, int mapHeight, int inflate)
Paint a diagram of a document.
Parameters:
| objs (IEnumerable<IGH_DocumentObject>) | Objects to paint. |
| mapWidth (int) | Width (in pixels) of diagram. |
| mapHeight (int) | Height (in pixels) of diagram. |
| inflate (int) | Padding around the objects. |
Returns: True on success, false on failure.