graphic画椭圆,哪个属性或方法可以判断出长轴在X轴还是Y轴?
graphic drawEllipse,先从CAD中读出了中心点和长轴、短轴,再g.drawellipse。
请问怎样判断长轴在X轴还是Y轴?
多谢了。
[解决办法]
Dim r As New Rectangle(10, 10, 200, 30)
Me.CreateGraphics.DrawEllipse(Pens.Black, r)
If r.Width < r.Height Then
MsgBox("宽大于高")
ElseIf r.Width < r.Height Then
MsgBox("高大于宽")
Else
MsgBox("宽等于高")
End If