阅读:1881回复:2
画椭圆的问题
<P> [Feature = ] OBJECT.CreateEllipticalRegion( Rectangle, [Angle] , [Resolution] , [Style] ) </P>
<P>这是画椭圆的方法,请问有没有人知道 Rectangle参数代表的是什么意思?是椭圆的外接四边形吗?</P> |
|
1楼#
发布于:2008-11-08 17:21
我知道这个RECT代表的是椭圆的外接四边形,椭圆内切于该四边形
|
|
2楼#
发布于:2008-11-04 15:42
Private Sub CreateEllipse()<BR> ' 创建新的椭圆区域并将其添加到临时<BR> ' 图元图层<BR> Dim rect As New MapXLib.Rectangle<BR> Dim createdEllipse As Feature<BR> <BR> rect.Set Map1.CenterX, Map1.CenterY, Map1.CenterX + 30, _ Map1.CenterY + 10<BR> Set createdEllipse = Map1.FeatureFactory.CreateEllipticalRegion _<BR> (rect, 0, 24, Map1.DefaultStyle)<BR> Map1.Layers.Item("Temp Layer").AddFeature createdEllipse<BR> End Sub
|
|