当我尝试拨打pathwraped.Warp
时,我得到:
最好的重载方法匹配'System.Drawing.Drawing2D.GraphicsPath.Warp(System.Drawing.PointF [],System.Drawing.Drawing2d.Matrix,System.Drawing.Drawing2D.WarpMode)'有一些内部参数< / p>
protected override void OnPaint(PaintEventArgs e)
{
Graphics graf = e.Graphics;
GraphicsPath pathwraped = (GraphicsPath)path.Clone ();
WrapMode wm = (WrapMode)miWarpMod.Index;
pathwraped.Warp(apDes, path.GetBounds (), new Matrix(), wm);
graf.DrawPath(new Pen(ForeColor), pathwraped);
}