void DrawCurrentBest(PictureReproducerOrganism organism) { Graphics g = panelImage.CreateGraphics(); g.FillRectangle(new SolidBrush(System.Drawing.Color.Black), 0, 0, panelImage.Width, panelImage.Height); g.DrawImage(organism.GetResult(), new Point(0, 0)); }
private void btnCreateTestImage_Click(object sender, EventArgs e) { Random rand = new Random(); PictureReproducerOrganism samplePicture = new PictureReproducerOrganism(50,512,512,rand); samplePicture.CalculateResult(); Graphics g = panelImage.CreateGraphics(); }