What is the easiest way to convert a Rectangle
to a RectangleF
in .NET?
Edit: This sounds trivial and it is, but I was trying to save some typing. The best I could come up with:
RectangleF rdest(rsrc.Location, rsrc.Size); // C++/CLI
...or...
RectangleF rdest = new RectangleF(rsrc.Location, rsrc.Size) // C#