Warp()方法出错

时间:2018-05-10 00:46:03

标签: c# .net

当我尝试拨打pathwraped.Warp时,我得到:

  

最好的重载方法匹配'System.Drawing.Drawing2D.GraphicsPath.Warp(System.Drawing.PointF [],System.Drawing.Drawing2d.Matrix,System.Drawing.Drawing2D.WarpMode)'有一些内部参数< / p>

capture from error..

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);

}

0 个答案:

没有答案