Neco/LandView/GraphicsEngine.cs
/// <summary>Draws a small crosshair on where the origin is</summary>
/// <param name="Origin">Point that represents 0,0 on the given graphics</param>
/// <param name="GRM">Graphics to draw the crosshair onto</param>
Draws a small crosshair on where the origin is
Draws a small crosshair on where the origin is
public static void DrawOriginCrosshair(Point Origin, Graphics GRM) {
            Pen P = new(Color.Black, 3);
            GRM.DrawLine(P, OffsetPoint(Origin, 0, -6), OffsetPoint(Origin, 0, 6));
            GRM.DrawLine(P, OffsetPoint(Origin, -6, 0), OffsetPoint(Origin, 6, 0));
        }
public static void DrawOriginCrosshair ( Point Origin , Graphics GRM ) { Pen P = new ( Color . Black , 3 ) ; GRM . DrawLine ( P , OffsetPoint ( Origin , 0 , - 6 ) , OffsetPoint ( Origin , 0 , 6 ) ) ; GRM . DrawLine ( P , OffsetPoint ( Origin , - 6 , 0 ) , OffsetPoint ( Origin , 6 , 0 ) ) ; }
Draws a small crosshair on where the origin is
Draws a small crosshair on where the origin is
Origin
Point
Point that represents 0,0 on the given graphics
Point that represents 0 0 on the given graphics
GRM
Graphics
Graphics to draw the crosshair onto
Graphics to draw the crosshair onto