C# |
Can someone help me with this C#
Hi, Iv had to convert a program from Java to C#, I thought I had done
it, but it doesnt work, and Im at a loose end because I cant figure out
why it isnt working. Anyway, what it is is a Mandelbrot Set that Im
trying to display in a picturebox, I am drawing the fractal to a bitmap
then getting the picturebox to display the bitmap. If anyone can
explain what Im doing wrong that would be great.

Danatas GerviRank #4,152 · 361 reputationPosted Nov 5, 2009, 6:21 AM EST
I changed only this function, and something begin happens….
public void init() // all instances will be prepared
{
g1 = pictureBox1.CreateGraphics(); //----------------------//?JAVA? g1 = picture.getGraphics();
//HSBcol = new HSB();
this.Size = new Size(640, 480);
finished = false;
x1 = this.Width;
y1 = this.Height;
xy = (float)x1 / (float)y1;
//?JAVA? picture = createImage(x1, y1);
//?JAVA? g1 = picture.getGraphics();
finished = true;
mandelbrot();
start(); //------------------------------not sure….
}