Converting RectangleF to Rectangle

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

Is there any EASY way to convert RectangleF to a Rectangle object? Casting doesnt work, and it doesn't have a ToRectangle function or anything like that (although it should!

Thanks

Yaron
 
Hi,
Yaron said:
Hi,

Is there any EASY way to convert RectangleF to a Rectangle object? Casting
doesnt work, and it doesn't have a ToRectangle function or anything like
that (although it should!)

See static method Round on Rectangle, it takes a RectangleF and returns a
Rectangle.

HTH,
greetings
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top