views:

405

answers:

1

http://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawrectangle.aspx

FillRectangle, DrawRectangle, FillElipse and DrawEllipse all can take 4 Float (or "Single") parameters: x, y, width, height. DrawRectangle is the only one that will not take a RectangleF, though.

I was wondering if anyone knew why this is. It sure seems like they just plain forgot to overload it.

+1  A: 

Well it sure does look like an omission to me too.

Interestingly, there is an overload of DrawRectangles that takes a RectangleF[] array as a parameter.

So I suppose you could use this with an array size of one if needed.

Andy