//method to regenerate the bitmap to display void refreshImage() { mandelImage = new MandelImage(mandelPanel.Width, mandelPanel.Height, middle, scale, maxLoop); mandelBitmap = mandelImage.create(colorList[comboBoxColors.SelectedIndex]); mandelPanel.Invalidate(); }