DMap Editor - Drawing Methode.

01/10/2011 13:00 Syst3m_W1z4rd#1
How can I draw on the picturebox, I'm using for the DMap editor?
Tried alot now, but still dosn't wants to do it.

This is what I tried:
Code:
            Graphics Grahpic = CreateGraphics();
            Pen Pen = new Pen(Color.White, int.Parse(textBox1.Text));
            Grahpic.DrawRectangle(Pen, 10, 10, 50, 50);
And yea, I have 0 experience really with such things ><
01/10/2011 13:08 Korvacs#2
The graphic that your drawing to has to be associated with the picturebox, i beleive theres a method you can use from the picturebox in order to get the graphics object you need.
01/10/2011 17:45 gabrola#3
PHP Code:
Bitmap bmp = new Bitmap(100100);
Graphics gfx Graphics.FromImage(bmp);
gfx.FillRectangle(new SolidBrush(Color.Black), 552020);
pictureBox.Size bmp.Size;
pictureBox.Image bmp