GH_CapsuleRender Method (Graphics, Image, Color) |
Have this capsule draw itself onto a Graphics surface with a custom colour override.
Namespace:
Grasshopper.GUI.Canvas
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax public void Render(
Graphics G,
Image icon,
Color colour
)
Public Sub Render (
G As Graphics,
icon As Image,
colour As Color
)
Parameters
- G
- Type: System.DrawingGraphics
Graphics object to draw with. Zoom factor is implied by the G.Transform property. - icon
- Type: System.DrawingImage
Icon to render in center of content/bounding box. - colour
- Type: System.DrawingColor
Base colour for the capsule. Other colours will be derived from the base colour.
If you want full control over every colour involved, then use the overload that allows you
to supply a custom Style instead.
See Also