用circle()画的椭圆,如何使它旋转任意角度???

解决方案 »

  1.   

    not sure if you can do that with circle(), but if you want to do the drawing yourself, download the project under
    Draw a rotated ellipse (3K)
    on this page:
    http://www.vb-helper.com/howtoadv.htm
      

  2.   

    没有那样的语句
    你可以根据公式算出(画出)椭圆
    tempx=Cos(th)*a
    tempy=Sin(th)*b
    x=x0+tempx*Cos(旋转角度)-tempy*Sin(旋转角度)
    y=y0+tempx*Sin(旋转角度)+tempy*Cos(旋转角度)th是参数,0~2π
    x、y:绘制的坐标
    x0、y0:中心点的坐标
    a、b:宽、高
    tempx、tempy:临时变量
    旋转角度:单位:弧度
    也可以旋转整个图片:
    http://www.csdn.net/expert/topic/841/841534.xml?temp=.8903162