Tag Archives: Graphics class

Add an extension method to the Graphics class in C#

For some strange reason, the Graphics class’s DrawRectangle method cannot take a RectangleF as a parameter. It can take a Rectangle or four float values, and the FillRectangle method can take a RectangleF as a parameter, but the DrawRectangle method … Continue reading

Posted in drawing, extension methods, extensions, graphics | Tagged , , , , , , , , , , , , | Leave a comment