I am creting one android app and i want to get original image after editing image -


i creating 1 simple app in 1 picture there, , dark , blue button there.

now, when user click on blue button, image display blue effect. after getting blue effect, want retrieve original image on original image button on click.

how can original image blue effect on image?
code blue image button below:

public void blue(view view){       operation = bitmap.createbitmap(bmp.getwidth(),bmp.getheight(), bmp.getconfig());        for(int i=0; i<bmp.getwidth(); i++){          for(int j=0; j<bmp.getheight(); j++){             int p = bmp.getpixel(i, j);             int r = color.red(p);             int g = color.green(p);             int b = color.blue(p);             int alpha = color.alpha(p);              r =  0;             g =  0;             b =  b+150;             alpha = 0;             operation.setpixel(i, j, color.argb(color.alpha(p), r, g, b));         }     }     im.setimagebitmap(operation); }   

where im image view.

can tell me how original image?


Comments