We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
canvas.clipPath(mPath0, Region.Op.XOR); clipPath方法内部有调用checkValidClipOp()方法。 private static void checkValidClipOp(@nonnull Region.Op op) { if (sCompatiblityVersion >= Build.VERSION_CODES.P && op != Region.Op.INTERSECT && op != Region.Op.DIFFERENCE) { throw new IllegalArgumentException( "Invalid Region.Op - only INTERSECT and DIFFERENCE are allowed"); } } API版本大于28时,只支持Region.Op.INTERSECT和Region.Op.DIFFERENCE,不支持Region.Op.XOR,差集效果怎么实现?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
canvas.clipPath(mPath0, Region.Op.XOR);
clipPath方法内部有调用checkValidClipOp()方法。
private static void checkValidClipOp(@nonnull Region.Op op) {
if (sCompatiblityVersion >= Build.VERSION_CODES.P
&& op != Region.Op.INTERSECT && op != Region.Op.DIFFERENCE) {
throw new IllegalArgumentException(
"Invalid Region.Op - only INTERSECT and DIFFERENCE are allowed");
}
}
API版本大于28时,只支持Region.Op.INTERSECT和Region.Op.DIFFERENCE,不支持Region.Op.XOR,差集效果怎么实现?
The text was updated successfully, but these errors were encountered: