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); }
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); }