Exemple #1
0
        private void ReadMapImage(object sender, RoutedEventArgs e)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("%APPDATA%\\Tibia\\Automap\\");
            sb.Append(Convert.ToString(Read.X() / 256));
            sb.Append(Convert.ToString(Read.Y() / 256));
            if (Read.Z() < 10)
            {
                sb.Append("0");
            }
            sb.Append(Convert.ToString(Read.Z()));
            sb.Append(".map");
            fileName.Text = sb.ToString();
            Image1.Source = loadBitmap(MapReading.getMapFile(sb.ToString()));
            Image2.Source = loadBitmap(MapReading.getMapSpeedFile(sb.ToString()));
        }
Exemple #2
0
 private void Button_Click_6(object sender, RoutedEventArgs e)
 {
     Image1.Source = loadBitmap(MapReading.getMapFile(fileName.Text));
     Image2.Source = loadBitmap(MapReading.getMapSpeedFile(fileName.Text));
 }