Beispiel #1
0
 private void LoadWorldMapImage()
 {
     Utils.Log("Loading " + Config.PathWorldMapPic);
     try
     {
         Bitmap Bitmap = new Bitmap(Config.PathWorldMapPic);
         pctWorldMap.Image = Bitmap.ScaleByPercent(Display.WorldmapScale);
     }
     catch (FileNotFoundException)
     {
         Utils.Log("Failed to load " + Config.PathWorldMapPic);
         Message.Show("Couldn't find " + Config.PathWorldMapPic, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Beispiel #2
0
 private void zoomOutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Display.ZoomOut(2f);
     Bitmap Bitmap = new Bitmap(Config.PathWorldMapPic);
     pctWorldMap.Image = Bitmap.ScaleByPercent(Display.WorldmapScale);
     pctWorldMap.Refresh();
 }