Graphics handling in Visual C#2005 is based on GDI+(GDI stands for Graphical Device Interface). A GDI+ allows you to display graphics on the screen or a printer without having to handle the details of a …
Read More »Graphical Device Interface (GDI+) In C#
Graphical Device Interface (GDI) In C#
GDI+ is next evolution of GDI for the .Net Platform. All GDI+ classes reside in the following namespaces: • System.Drawing • System.Text • System.Printing • System.Internal • System.Imaging • System.Drawing2D • System.Design The Graphics Class …
Read More »Sample Examples:
Drawing a rectangle You can override OnPaint event of your form to draw an rectangle. The LinearGradientBrush encapsulates a brush and linear gradient. protected override void OnPaint(PaintEventArgs pe) { Graphics g = pe.Graphics …
Read More »