Rectangles

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rlrcstr

    #1

    Rectangles

    Why is it that Rectangle and RectangleF are completely incompatible?

    I want to draw a reactangle and then draw a string inside of it, but I can't
    use the same Rectangle variable because DrawRectangle uses a Rectangle and
    DrawString uses a RectangleF. Can't even do an explicit conversion. Just
    seems strange to me...

    Jerry


  • Ken Tucker [MVP]

    #2
    Re: Rectangles

    Hi,

    Rectanglef.op_i mplicit converts a rectangle to rectanglef

    http://msdn.microsoft.com/library/de...rsionTopic.asp

    Ken
    ---------------------
    "Rlrcstr" <rlrcstr@msn.co m> wrote in message
    news:%238tZcNmY FHA.980@TK2MSFT NGP12.phx.gbl.. .
    Why is it that Rectangle and RectangleF are completely incompatible?

    I want to draw a reactangle and then draw a string inside of it, but I can't
    use the same Rectangle variable because DrawRectangle uses a Rectangle and
    DrawString uses a RectangleF. Can't even do an explicit conversion. Just
    seems strange to me...

    Jerry



    Comment

    Working...