private void Render() { HexGridRenderer HGR = new HexGridRenderer(pictureBox1.Width, pictureBox1.Height, (float)scaleNumericUpDown.Value); Bitmap B = HGR.RenderHexGrid(P, LastSimulationResult as Dictionary <HexCoordinate, ulong>); pictureBox1.Image = B; }
void RenderPaletteHex(Palette P, int i, PictureBox pictureBox) { HexGridRenderer HGR = new HexGridRenderer(pictureBox.Width, pictureBox.Height, 0.5f * pictureBox.Width); Dictionary <HexCoordinate, ulong> Cell = new Dictionary <HexCoordinate, ulong>(); Cell.Add(new HexCoordinate(0, 0), (ulong)i); Bitmap B = HGR.RenderHexGrid(P, Cell); pictureBox.Image = B; }