Re: [問題] 橢圓Region
利用 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
推
10/17 14:23, , 1F
10/17 14:23, 1F
討論串 (同標題文章)
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章