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);
            }
Пример #2
0
        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);
        }
Пример #3
0
 /// <summary>
 /// Draws a <see cref="InvariantEllipsePrimitive"/>.  Must be overridden and implemented.
 /// </summary>
 protected abstract void DrawInvariantEllipsePrimitive(InvariantEllipsePrimitive ellipse);
Пример #4
0
 /// <summary>
 /// Draws a <see cref="InvariantEllipsePrimitive"/>.
 /// </summary>
 protected override void DrawInvariantEllipsePrimitive(InvariantEllipsePrimitive ellipse)
 {
     InternalDrawEllipsePrimitive(ellipse);
 }
Пример #5
0
 protected virtual void DrawInvariantEllipsePrimitive(InvariantEllipsePrimitive ellipse)
 {
     GdiRenderer.DrawEllipsePrimitive(Surface.OverlayBuffer, _pen, ellipse, Dpi);
 }
Пример #6
0
 /// <summary>
 /// Draws a <see cref="InvariantEllipsePrimitive"/>.
 /// </summary>
 protected override void DrawInvariantEllipsePrimitive(InvariantEllipsePrimitive ellipse)
 {
     DrawEllipsePrimitive(Surface.FinalBuffer, _pen, ellipse, Dpi);
 }