Add the following method to Steganography.java:
* Sets the highest two bits of each pixel's colors to the lowest two bits of each pixel's colors.
public static Picture revealPicture(Picture hidden) {
Picture copy = new Picture(hidden);
Pixel[][] pixels = copy.getPixels2D();
Pixel[][] source = hidden.getPixels2D();
for (int r = 0; r < pixels.length; r++) {
for (int c = 0; c < pixels[0].length; c++) {
Color col = source[r][c].getColor();
/* To be implemented */
}
}
return copy;
}
In the area specified "To be implemented", implement the process to isolate the rightmost two bits of the color values of col and move them to the leftmost position in copy.