推 MoUi:謝謝 10/17 14:23
利用 Matrix
※ 引述《MoUi (摸魚)》之銘言:
: C#書上橢圓Region的作法:
: GraphicsPath p1 = new GraphicsPath();
Matrix m = new Matrix();
Matrix.Rotate( -60 ); /* 或用 RotateAt(float, PointF) */
: p1.AddEllipse(10,50,50,100);
p1.Transform( m );
: Region r1;
: r1 = new Region(p1);
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 202.132.230.140