Drawing
Hey Hackforums. I have been doing C# for quite some time now, but I never really messed with graphics. My first attempt with C# graphics lead me to this:
[IMG]http://img98.imageshack.us/img98/3080/96670599.gif[/IMG]
Its not much, but I mean common, its pretty cool :D.
The only reason I am posting this is for someone to see what it is like to draw in C#. I'm sure someone can come up with something cool to make. Anyway, I commented my source, so hopefully someone can put some use to it!
Source:
Code
Graphics surface; // sets up new graphics
surface = this.CreateGraphics(); // creates graphic on the form
Pen pen1 = new Pen(Color.Black, 1.0f); // new pen, color blac
HatchBrush brushone = new HatchBrush(HatchStyle.DiagonalCross, Color.Black); // new brush
Rectangle rec2 = new Rectangle(10, 10, 100, 100); // new rectangle, X/Y / Size
Font drawfont = new Font("Arial", 20); // new font for my name
surface.DrawString("Mr. Predictable", drawfont, brushone, 210.0f, 20.0f); // draws my name
surface.DrawEllipse(pen1, 200, 100, 200, 200); // head
surface.DrawEllipse(pen1, 230, 130, 50, 50); // eye 1
surface.DrawEllipse(pen1, 310, 130, 50, 50); //eye 2
surface.DrawArc(pen1, 275, 200, 40, 40, 180, -180); // mouthI really hope someone finds this interesting!
http://www.pulsecodes.info
Computer and Information Science major.
Information Technology Apprentice.
Freelance Programmer.
Computer and Information Science major.
Information Technology Apprentice.
Freelance Programmer.



![[Image: lolj.png]](https://i.ibb.co/1zYW3qZ/lolj.png)