ColorFinder.java 文件源码

java
阅读 39 收藏 0 点赞 0 评论 0

项目:https-github.com-hyb1996-NoRootScriptDroid 作者:
@Override
public void run() {
    Thread thread = Thread.currentThread();
    ColorIterator.Pixel pixel = new ColorIterator.Pixel();
    while (mColorIterator.hasNext() && !thread.isInterrupted()) {
        mColorIterator.nextColor(pixel);
        if (mColorDetector.detectsColor(pixel.red, pixel.green, pixel.blue)) {
            mResult.add(new Point(mColorIterator.getX(), mColorIterator.getY()));
        }
    }
    if (thread.isInterrupted()) {
        throw new ScriptInterruptedException();
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号