12 private PointF[] _points = [];
27 SceneLayer? sceneLayer,
View? view, Rectangle bounds, PointF[] points,
string? nickname)
28 : base(color, host, mode, sceneLayer, view, bounds, nickname)
46 protected override void DrawGeometry(SKCanvas canvas, SKRect bounds, SKPaint paint)
48 PointF[] points = _points;
50 if (points is not
null)
DirectPolygon SetPoints(IEnumerable< PointF > points)
Replaces the point sequence with a defensive copy of normalized local points.
override void DrawGeometry(SKCanvas canvas, SKRect bounds, SKPaint paint)
DirectPolygon(Color color, RenderSurfaceHostBase host, View view, Rectangle screenBounds, IEnumerable< PointF > points, string? nickname=null)
Creates a view-space polygon within the supplied bounds.
DirectPolygon SetFillColor(Color? color)
Sets the interior color, or null to disable filling.
DirectPolygon(Color color, RenderSurfaceHostBase host, SceneLayer sceneLayer, Rectangle worldBounds, IEnumerable< PointF > points, string? nickname=null)
Creates a scene-layer polygon within the supplied bounds.
static PointF[] CopyPoints(IEnumerable< PointF > points, int minimumCount)
Copies and validates a sequence of normalized local points.
TShape SetShapeFill(Color? color)
Sets or clears the fill of a fillable shape.
static void DrawPointSequence(SKCanvas canvas, SKRect bounds, SKPaint paint, PointF[] points, bool closed)
Draws a point sequence as an open or closed path.
DirectShapeBase(Color color, RenderSurfaceHostBase host, DirectDrawingMode mode, SceneLayer? sceneLayer, View? view, Rectangle bounds, string? nickname)
Represents a base class for hosting a render surface, providing functionality for managing rendering ...
DirectDrawingMode
Specifies where direct drawing operations are applied within the rendering pipeline.
@ View
Performs direct drawing at the view level using screen-space coordinates.
@ SceneLayer
Performs direct drawing within a scene layer using world-space coordinates.