Rectangles

  • Thread starter Thread starter Rlrcstr
  • Start date Start date
R

Rlrcstr

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
 
Hi,

Rectanglef.op_implicit converts a rectangle to rectanglef

http://msdn.microsoft.com/library/d...ClassRectangleToRectangleFConversionTopic.asp

Ken
---------------------
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
 

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

Similar Threads

GDI+ Crashing! 3
Permanent Rectangle on Form. 4
":=" Syntax Within Parameter Lists 2
about some drawing 1
Drawing gradient border for rectangle 3
Y-Axis problem 1
ComboBox Drawing Problem 3
Problem with PictureBox 2

Back
Top