Neco/LandView/GraphicsEngine.cs
/// <summary>Creates an image with a country, all its districts, and all its roads</summary>
/// <param name="C"></param>
/// <returns></returns>
Creates an image with a country, all its districts, and all its roads
Creates an image with a country all its districts and all its roads
public static Image GenerateDetailedCountryImage(Country C) {
            try { 
                Image I = GenerateCanvas(C);
                Graphics GRM = Graphics.FromImage(I);
                Point Origin = GetOrigin(C);
#if (DEBUG)
                DrawOriginCrosshair(Origin, GRM);
#endif
                DrawEverything(C, GRM, Origin);
                GRM.Dispose();
                return I;
            } catch (Exception E) {
                return GenerateErrorImage($"{E.Source} at {E.TargetSite}:\n{E.Message}\n{E.StackTrace}");
            }
        }
public static Image GenerateDetailedCountryImage ( Country C ) { try { Image I = GenerateCanvas ( C ) ; Graphics GRM = Graphics . FromImage ( I ) ; Point Origin = GetOrigin ( C ) ; if ( DEBUG ) DrawOriginCrosshair ( Origin , GRM ) ; endif DrawEverything ( C , GRM , Origin ) ; GRM . Dispose ( ) ; return I ; } catch ( Exception E ) { return GenerateErrorImage ( $" { E . Source }  at  { E . TargetSite } : \n { E . Message } \n { E . StackTrace } " ) ; } }
Creates an image with a country, all its districts, and all its roads
Creates an image with a country all its districts and all its roads
None
C
Country
None