This project is read-only.

GDIPlusX: Feature Request: type checking for rectangles

Topics: General
Nov 21, 2007 at 6:01 PM
Given the problem mentioned here:

Functions like Bitmap..LockBits require a System.Drawing.Rectangle as a parameter, and do not work if passed a System.Drawing.RectangleF

Since GetBounds is the laziest way to obtain a rectangle, but of type System.Drawing.RectangleF, I propose that this functions check the type of Rectangle passed to them, and convert it to what they need, or in the worst case, fail with a warning,

Now they fail silently.

Nov 24, 2007 at 3:06 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.