Grasshopper API
GH_GraphicsUtilRenderUnscaledIcon Method (Graphics, Image, Int32, Int32, Double) |
Note: This API is now obsolete.
Draws an image file at 1:1 scale centered on the given coordinates.
Namespace: Grasshopper.GUI
Assembly: Grasshopper (in Grasshopper.dll)

[ObsoleteAttribute("This method is obsolete, use a RenderIcon() overload instead.")] public static void RenderUnscaledIcon( Graphics g, Image icon, int cx, int cy, double fade )
<ObsoleteAttribute("This method is obsolete, use a RenderIcon() overload instead.")> Public Shared Sub RenderUnscaledIcon ( g As Graphics, icon As Image, cx As Integer, cy As Integer, fade As Double )
Parameters
- g
- Type: System.DrawingGraphics
Graphics object to draw with. - icon
- Type: System.DrawingImage
Image to draw. - cx
- Type: SystemInt32
X center of image in Graphics coordinate. - cy
- Type: SystemInt32
Y center of image in Graphics coordinate. - fade
- Type: SystemDouble
Alpha fading factor.
