Tag Archives: Graphics object

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

Rotate a picture in C#

I recently returned from a trip and one particular picture was rotated just a tiny bit from where I wanted it. Normally I wouldn’t care but this picture (a small version is included in the download) has horizontal features at … Continue reading

Posted in algorithms, graphics, image processing | Tagged , , , , , , , , , , , , , , , , | 1 Comment