none
GraphicsPath.IsVisible 计算过大数值会出现BUG RRS feed

  • 问题

  • int intDegree=40000;
    GraphicsPath graphicsPath1=new GraphicsPath();
    GraphicsPath graphicsPath2=new GraphicsPath();
    
    graphicsPath1.AddEllipse(1000-intDegree,500-intDegree,intDegree*2,intDegree*2);
    
    graphicsPath2.AddEllipse(12345678-intDegree,10045678-intDegree,intDegree*2,intDegree*2);
    
    //这个计算结果为True
    graphicsPath1.IsVisible(new Point(1000,500));
    
    //这个计算结果为False
    graphicsPath2.IsVisible(new Point(12345678,10045678));

    2018年5月22日 11:07

全部回复

  • Hi Jen,

    我测试了这个代码,发现确实可以重现你的问题,不确定它是不是一个BUG,现在已经将该问题提交到Microsoft,可能会花费一定的时间,请耐心等待回复。

    感谢理解。

    Regards,

    Frankie


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2018年5月24日 3:05