Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

system.graphics

Status
Not open for further replies.

murrayja

Programmer
May 6, 2000
90
US
Can anyone direct me to some documentation, with examples, of the namespace "system.graphics"? I am converting a visual basic app that uses raster-ops and want to use as much managed code as possible.
 
You will want to google GDI+ Tutorial and see what comes up. Once you become familiar with GDI+ you can do a lot of custom drawing.

Just a note - most tutorials will have you create new pens and brushes every time you draw. This is a bad thing. Use system pens and brushes instead.

Example:

e.Graphics.DrawLine(Pens.Black, 0,0,100,100); //will use the 1pixel system pen that is black
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top