示例#1
0
        public void TestMinimapImage()
        {
            float x, y;

            Pather.GetTileByLocation(new[] { -8020, 1515, -1.5f }.ToRecast(), out x, out y);

            var image = new MinimapImage("Azeroth", 256, 256, (int)x, (int)x, (int)y, (int)y);

            image.Generate();
            image.Result.Save("S:\\meshReader\\MinimapImageTest.png", ImageFormat.Png);
        }
示例#2
0
        private Bitmap GetMinimapImage(string world, int width, int height, int minX, int maxX, int minY, int maxY)
        {
            var background = new MinimapImage(world, 256, 256, 0, 64, 0, 64);

            background.Generate();

            using (var graphics = Graphics.FromImage(background.Result))
            {
                // DO THE DRAWING HERE

                graphics.SmoothingMode = SmoothingMode.HighQuality;
            }
            return(background.Result);
        }
示例#3
0
 private void Awake()
 {
     MinimapImage = GetComponent <MinimapImage>();
 }