Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

反奇偶规则Path.FillType.EVEN_ODD怎么失效了。 #89

Open
gp888 opened this issue May 11, 2018 · 1 comment
Open

反奇偶规则Path.FillType.EVEN_ODD怎么失效了。 #89

gp888 opened this issue May 11, 2018 · 1 comment

Comments

@gp888
Copy link

gp888 commented May 11, 2018

    mPaint.setStyle(Paint.Style.FILL);
    canvas.translate(mWidth / 2, mHeight / 2);
    Path path = new Path();
    path.addRect(-200,-200,200,200, Path.Direction.CW);
    //path.setFillType(Path.FillType.EVEN_ODD);
    path.setFillType(Path.FillType.INVERSE_EVEN_ODD);            // 反奇偶规则
    canvas.drawPath(path, mPaint);

效果跟使用Path.FillType.EVEN_ODD的效果一样,应该相反的。不知道怎么回事。。

@NOS-AE
Copy link

NOS-AE commented Mar 14, 2020

请问您解决了吗,我的INVERSE_WINDING和INVERSE_EVEN_ODD两个反规则看起来也没有效果

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants