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

貌似我是第一个发言哒!颜色填充错误鸟~~~ #1

Open
wsk900906 opened this issue Jul 31, 2015 · 0 comments
Open

貌似我是第一个发言哒!颜色填充错误鸟~~~ #1

wsk900906 opened this issue Jul 31, 2015 · 0 comments

Comments

@wsk900906
Copy link

如果给了边界颜色,就会全屏填充颜色,如果不给则填充的颜色锯齿很大。
我做了一些修改,在填充白色区域还可以(不需要写入边界颜色)

    //override by swifty if pixel is white then fill
    private boolean needFillPixel(int[] pixels, int pixel, int index) {
        if (hasBorderColor) {
            return pixels[index] != mBorderColor;
        } else {
//          return pixels[index] == pixel;
            return pixels[index] > 0xFFBBBBBB ? true : false;
        }

    }

暂时没想到其他好的办法~~~

此外我突然灵光一闪,这个这么好玩,为何不做一个应用玩玩,于是自己弄了一个app,地址在这里:
https://github.com/wsk900906/FillColor
来一起玩玩呗~~

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