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

ImageUtils.compare() の返り値の型変更への対応 #1

Open
sakaim opened this issue Jul 6, 2017 · 0 comments
Open

ImageUtils.compare() の返り値の型変更への対応 #1

sakaim opened this issue Jul 6, 2017 · 0 comments

Comments

@sakaim
Copy link
Contributor

sakaim commented Jul 6, 2017

#125 の仕様変更により、ImageUtils.compare()の返り値がImageComparedResultクラスになった。

PDFサンプルで以下のように修正が必要。

<Before>

DiffPoints diffPoints = ImageUtils.compare(leftImage, null, rightImage, null, null);

if (diffPoints.isFailed()) {
...
}

<After>

ImageComparedResult result = ImageUtils.compare(leftImage, null, rightImage, null, null);

if (result.isFailed()) {
    DiffPoints diffPoints = (DiffPoints) result;
    ...
}
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

1 participant