Skip to content

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

Description

@gp888
    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的效果一样,应该相反的。不知道怎么回事。。

Activity

  1. NOS-AE commented on Mar 14, 2020

    @NOS-AE

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions