GDIPlusX: Feature Request: type checking for rectangles

Topics: General
Developer
Nov 21, 2007 at 6:01 PM
Given the problem mentioned here: http://www.codeplex.com/VFPX/Thread/View.aspx?ThreadId=18040

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.



Developer
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.