Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Add green to the image.
- */
- /**
- *
- * @param originalImage image to be shifted.
- * @param amount amount to be shifted.
- * @return shifted image.
- */
- public static int[][] moreGreen(final int[][] originalImage, final int amount) {
- int[][] shiftedArray = new int[originalImage.length][originalImage[0].length];
- shiftedArray = colorShift(amount, 2, originalImage);
- return shiftedArray;
- }
- /*
- * Remove green from the image.
- */
- /**
- *
- * @param originalImage image to be shifted.
- * @param amount amount to be shifted.
- * @return shifted image.
- */
- public static int[][] lessGreen(final int[][] originalImage, final int amount) {
- int[][] shiftedArray = new int[originalImage.length][originalImage[0].length];
- shiftedArray = colorShift(-amount, 2, originalImage);
- return shiftedArray;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement