Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. /*
  2. * Add green to the image.
  3. */
  4. /**
  5. *
  6. * @param originalImage image to be shifted.
  7. * @param amount amount to be shifted.
  8. * @return shifted image.
  9. */
  10. public static int[][] moreGreen(final int[][] originalImage, final int amount) {
  11. int[][] shiftedArray = new int[originalImage.length][originalImage[0].length];
  12. shiftedArray = colorShift(amount, 2, originalImage);
  13. return shiftedArray;
  14. }
  15.  
  16. /*
  17. * Remove green from the image.
  18. */
  19. /**
  20. *
  21. * @param originalImage image to be shifted.
  22. * @param amount amount to be shifted.
  23. * @return shifted image.
  24. */
  25. public static int[][] lessGreen(final int[][] originalImage, final int amount) {
  26. int[][] shiftedArray = new int[originalImage.length][originalImage[0].length];
  27. shiftedArray = colorShift(-amount, 2, originalImage);
  28. return shiftedArray;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement