# GraphicsExtensionMethods class

Namespace: [Grasshopper2.Extensions](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.extensions.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class GraphicsExtensionMethods
```

Provides extension methods for the Eto graphics object.

## Fields

- [StandardRuleLine](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/standardruleline.md): (static)
- [StandardRuleMargin](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/standardrulemargin.md): (static)

## Methods

- [AddNoise](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/addnoise.md): (4 overloads, static) Add noise to an entire control.
- [Clear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/clear.md): (static) Clear the graphics using black-based transparent.
- [DrawAnchoredText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawanchoredtext.md): (static) Draw text whose anchor is at a specific location.
- [DrawAngledText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawangledtext.md): (2 overloads, static) Draw text at a point along a direction. This method automatically aligns and rotates text to keep it as upright as possible.
- [DrawArc](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawarc.md): (2 overloads, static) Draw an arc.
- [DrawArrow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawarrow.md): (2 overloads, static) Draw an arrow.
- [DrawArrowBi](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawarrowbi.md): (static) Draw an arrow at both ends of a line segment.
- [DrawArrowDimples](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawarrowdimples.md): (static) Draw a set of three dimples hinting at a draggable area.
- [DrawBalloonLabel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawballoonlabel.md): (2 overloads, static) Draw a balloon with a text label.
- [DrawBarDimples](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawbardimples.md): (static) Draw a set of five dimples hinting at a draggable area.
- [DrawBezier](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawbezier.md): (static) Draw a bezier segment.
- [DrawBox](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawbox.md): (3 overloads, static) Draw the edges of a box.
- [DrawBracketLabel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawbracketlabel.md): (static) Draw a bracketed label underneath some anchor points.
- [DrawCenteredText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawcenteredtext.md): (2 overloads, static) Draw centered text.
- [DrawCircle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawcircle.md): (2 overloads, static) Draw a circle.
- [DrawColourPivot](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawcolourpivot.md): (static) Draw the standard pivot shape at the given location.
- [DrawCornerShadow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawcornershadow.md): (2 overloads, static) Draw a quarter-circle shadow radiating outward from a single point, darkest at the point and fading with radial distance. Use this to round off the corners where two DrawEdgeShadow strips meet. The pixel radius and peak opacity match the straight edges of the same [ShadowSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.shadowsize.md).
- [DrawCylinder](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawcylinder.md): (3 overloads, static) Draw the wireframe of a cylinder.
- [DrawDebugBox](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawdebugbox.md): (static) Draw a dotted debug box handy while writing layout code.
- [DrawDimples](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawdimples.md): (static) Draw a set of dimples hinting at a draggable area.
- [DrawDisabledMotif](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawdisabledmotif.md): (2 overloads, static) Draw a standard disabled control motif.
- [DrawEllipse](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawellipse.md): (2 overloads, static) Draw an ellipse.
- [DrawFadingArc](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawfadingarc.md): (2 overloads, static) Draw an arc which fades to transparency at both ends.
- [DrawFadingColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawfadingcolour.md): (static) Draw a vertical block with fade-in and fade-out regions.
- [DrawFadingLine](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawfadingline.md): (2 overloads, static) Draw a line which fades to another colour at both ends.
- [DrawFrame](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawframe.md): (4 overloads, static) Draw a frame with a title.
- [DrawFunction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawfunction.md): (static) Draw a function within a frame.
- [DrawImageWithPadding](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawimagewithpadding.md): (2 overloads, static) Draw an image into a circle.
- [DrawInsideShadow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawinsideshadow.md): (2 overloads, static) Draw an inset shadow inside a rectangle, darkest along the specified edge(s) and fading toward the rectangle's interior. The pixel width and peak opacity for each preset are defined in [GraphicsExtensionMethods.ShadowPixelSize(ShadowSize)](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods.md) and [GraphicsExtensionMethods.ShadowPixelAlpha(ShadowSize)](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods.md).
- [DrawKeyValueList](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawkeyvaluelist.md): (static) Draw a list of key-value items.
- [DrawLine](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawline.md): (2 overloads, static) Draw a line.
- [DrawLineThroughBox](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawlinethroughbox.md): (4 overloads, static) Draw a line through a box.
- [DrawMarker](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawmarker.md): (static) Draw a circle and arrow around a target box.
- [DrawMatrix](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawmatrix.md): (4 overloads, static) Draw a matrix within a rectangle.
- [DrawOutsideShadow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawoutsideshadow.md): (2 overloads, static) Draw a drop shadow outside a rectangle, darkest along the rectangle's perimeter and fading outward. The shadow always wraps the entire rectangle: all four edges plus rounded corners. The pixel width and peak opacity for each preset are defined in [GraphicsExtensionMethods.ShadowPixelSize(ShadowSize)](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods.md) and [GraphicsExtensionMethods.ShadowPixelAlpha(ShadowSize)](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods.md).
- [DrawPointer](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawpointer.md): (2 overloads, static) Draw an arrow pointing at a location.
- [DrawRuledPaper](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawruledpaper.md): (4 overloads, static) Draw ruled paper with custom colours.
- [DrawShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawshape.md): (8 overloads, static) Draw a balloon using the specified colour.
- [DrawShapeBackground](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawshapebackground.md): (static) Draw the background layers of a slab.
- [DrawShapeForeground](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawshapeforeground.md): (static) Draw the background layers of a slab.
- [DrawSolidBalloon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawsolidballoon.md): (static) Draw a default balloon label. Draw a solid balloon around a text, with the tip at the local origin. The balloon is drawn in the current transform and is meant to be placed via a translation to the tip and a scale to control coordinates.
- [DrawSunkenText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawsunkentext.md): (static) Draw sunken centered text.
- [DrawTextInFrame](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawtextinframe.md): (2 overloads, static) Draw trimmed and unwrapped text into the vertical centre of a frame.
- [FillArc](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/fillarc.md): (2 overloads, static) Fill an arc.
- [FillBox](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/fillbox.md): (4 overloads, static) Draw the shading on a box using custom settings.
- [FillCircle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/fillcircle.md): (2 overloads, static) Fill a circle.
- [FillCylinder](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/fillcylinder.md): (3 overloads, static) Draw the shading of a cylinder.
- [FillDiamond](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/filldiamond.md): (4 overloads, static) Fill a diamond.
- [FillEllipse](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/fillellipse.md): (2 overloads, static) Fill an ellipse.
- [FillLeftSemiCircle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/fillleftsemicircle.md): (2 overloads, static) Fill the left half of a circle.
- [FillMotif](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/fillmotif.md): (4 overloads, static) Fill a region with a motif pattern.
- [FillPartialDiamond](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/fillpartialdiamond.md): (4 overloads, static) Fill a diamond.
- [FillRightSemiCircle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/fillrightsemicircle.md): (2 overloads, static) Fill the right half of a circle.
- [FocusEdge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/focusedge.md): (static) Gets the colour to be used for drawing focus region outlines.
- [FocusFill](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/focusfill.md): (static) Gets the colour to be used for filling focus regions.
- [HoverEdge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/hoveredge.md): (static) Gets the colour to be used for drawing hover region outlines.
- [HoverFill](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/hoverfill.md): (static) Gets the colour to be used for filling hover regions.
- [MeasureCharacterRanges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/measurecharacterranges.md): (3 overloads, static) Determine the bounds of each character within a string.
- [MeasureGraphemeRanges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/measuregraphemeranges.md): (2 overloads, static) Determine the bounds of each grapheme cluster within a string, laid out left to right from an anchor. Unlike [GraphicsExtensionMethods.MeasureCharacterRanges(Font, string, PointF)](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/measurecharacterranges.md) this returns one box per user-perceived character (base + combining marks, whole surrogate pairs), so it aligns with a grapheme-indexed caret.
- [PaddedTextureBrush](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/paddedtexturebrush.md): (static) Create a texture brush with a scaled image.
