Brad Jones
October 25th, 2002, 09:14 AM
Does anyone know why the Graphics class in System. Drawing does not use a constructor to create an object?
You would think that....
System.Drawing.Graphic g = new System.Drawing.Graphic();
would be the way to create a Graphic object, but is isn't.
You have to do:
System.Drawing.Graphic g = CreateGraphic();
Does anyone know why the Graphic constructor wasn't simply overloaded with something like CreateGraphic? I've only just now digging into GDI+, so if I'm missing something, any enlightment would be appreciated.
Brad!
You would think that....
System.Drawing.Graphic g = new System.Drawing.Graphic();
would be the way to create a Graphic object, but is isn't.
You have to do:
System.Drawing.Graphic g = CreateGraphic();
Does anyone know why the Graphic constructor wasn't simply overloaded with something like CreateGraphic? I've only just now digging into GDI+, so if I'm missing something, any enlightment would be appreciated.
Brad!