alhazmy13 / ImageFilters

Image Filter is an Android Libary that lets you to Filtering any image
http://alhazmy13.net
91 stars 15 forks source link

How to handle png pictures #3

Closed chongbo2013 closed 7 years ago

chongbo2013 commented 7 years ago

I need to deal with the picture with transparency SketchFilter.cpp how should I modify

chongbo2013 commented 7 years ago
afterGray = abs(xVal) + abs(yVal);
        afterGray = min(255, max(0, afterGray));
        int pixel_index = i * width + j;
        if (pixel_index < width * height) {
            if (afterGray > threshold) {
                pixels[i * width + j] = RGB2Color(neonR, neonG, neonB);
            } else
                pixels[i * width + j] = ARGB2Color(0,1, 1, 1);
        }
chongbo2013 commented 7 years ago

thank u source i I have modified it successfully