GH_GraphicsUtilRenderCenteredIcon Method (Graphics, RectangleF, Image) |
Note: This API is now obsolete.
Draw an icon centered in a frame. This code is not zoom-aware, but it will
perform consistent rounding (to avoid pixel-jitter when moving the frame across the screen).
Icon will not be clipped to the frame.
Namespace:
Grasshopper.GUI
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax [ObsoleteAttribute("This method is obsolete, use a RenderIcon() overload instead.")]
public static void RenderCenteredIcon(
Graphics g,
RectangleF frame,
Image icon
)
<ObsoleteAttribute("This method is obsolete, use a RenderIcon() overload instead.")>
Public Shared Sub RenderCenteredIcon (
g As Graphics,
frame As RectangleF,
icon As Image
)
Parameters
- g
- Type: System.DrawingGraphics
Graphics object to render with. - frame
- Type: System.DrawingRectangleF
Frame to center icon in. - icon
- Type: System.DrawingImage
Icon to render
See Also