Grasshopper API
GH_GraphicsUtilRenderIcon Method |
Render an icon into a frame. The icon is positioned in the center and will
be drawn at its own size multiplied by the system UiScale, provided it doesn't exceed the frame.
Namespace: Grasshopper.GUI
Assembly: Grasshopper (in Grasshopper.dll)

public static void RenderIcon( Graphics graphics, RectangleF frame, Image icon )
Public Shared Sub RenderIcon ( graphics As Graphics, frame As RectangleF, icon As Image )
Parameters
- graphics
- Type: System.DrawingGraphics
Graphics object to draw with. - frame
- Type: System.DrawingRectangleF
Limiting frame. - icon
- Type: System.DrawingImage
Icon to draw.
