Class GridRenderer
Renders the background grid for the canvas using efficient drawing. Uses transform-based panning for O(1) pan performance.
public class GridRenderer
- Inheritance
-
GridRenderer
- Inherited Members
Constructors
GridRenderer(FlowCanvasSettings?)
public GridRenderer(FlowCanvasSettings? settings = null)
Parameters
settingsFlowCanvasSettings
Methods
Render(Canvas, Size, ViewportState, IBrush)
Renders the grid onto the specified canvas.
public void Render(Canvas canvas, Size viewSize, ViewportState viewport, IBrush gridBrush)
Parameters
canvasCanvasviewSizeSizeviewportViewportStategridBrushIBrush
UpdateSettings(FlowCanvasSettings)
Updates the settings used by this renderer.
public void UpdateSettings(FlowCanvasSettings settings)
Parameters
settingsFlowCanvasSettingsThe new settings to use.