internal SnapPointGraphic() { _circle = new InvariantEllipsePrimitive(); _circle.Color = Color.Tomato; _circle.InvariantTopLeft = new PointF(-6, -6); _circle.InvariantBottomRight = new PointF(6, 6); this.Graphics.Add(_circle); }
private static IGraphic CreatePoint(PointF location) { const float radius = 4; var point = new InvariantEllipsePrimitive(); point.Location = location; point.InvariantTopLeft = new PointF(-radius, -radius); point.InvariantBottomRight = new PointF(radius, radius); return(point); }
/// <summary> /// Draws a <see cref="InvariantEllipsePrimitive"/>. Must be overridden and implemented. /// </summary> protected abstract void DrawInvariantEllipsePrimitive(InvariantEllipsePrimitive ellipse);
/// <summary> /// Draws a <see cref="InvariantEllipsePrimitive"/>. /// </summary> protected override void DrawInvariantEllipsePrimitive(InvariantEllipsePrimitive ellipse) { InternalDrawEllipsePrimitive(ellipse); }
protected virtual void DrawInvariantEllipsePrimitive(InvariantEllipsePrimitive ellipse) { GdiRenderer.DrawEllipsePrimitive(Surface.OverlayBuffer, _pen, ellipse, Dpi); }
/// <summary> /// Draws a <see cref="InvariantEllipsePrimitive"/>. /// </summary> protected override void DrawInvariantEllipsePrimitive(InvariantEllipsePrimitive ellipse) { DrawEllipsePrimitive(Surface.FinalBuffer, _pen, ellipse, Dpi); }