Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Bitmap setWatterMark(Bitmap bitmap){
- Bitmap bitmap1 = bitmap.copy(Bitmap.Config.ARGB_8888,true);
- for (int i = 0;i<bitmap.getWidth();i+=4){
- bitmap1.setPixel(i,2, Color.rgb(59,45,11));
- }
- return bitmap1;
- }
- public boolean checkForWattermark(Bitmap bitmap){
- for (int i= 0;i<bitmap.getWidth();i+=4){
- if (bitmap.getPixel(i,2)!=Color.rgb(59,45,11)){
- return false;
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement