Grasshopper API
GH_PaletteStyleCreateBrush Method |
Create a fill brush. At low zoom levels the brush will be solid colour,
at medium to high zoom levels the brush will have a gradient.
Namespace: Grasshopper.GUI.Canvas
Assembly: Grasshopper (in Grasshopper.dll)

public virtual Brush CreateBrush( RectangleF rec, float zoom )
Public Overridable Function CreateBrush ( rec As RectangleF, zoom As Single ) As Brush
Parameters
- rec
- Type: System.DrawingRectangleF
Target rectangle of fill brush. - zoom
- Type: SystemSingle
Zoom level of target graphics surface.
Return Value
Type: BrushA brush object that can be used to fill a custom area.
