Question: Write a method grayscale that converts a color image into a blackand-white image. This is done by averaging the red, green, and blue components of
Write a method grayscale that converts a color image into a blackand-white image. This is done by averaging the red, green, and blue components of each pixel. For example, if a pixel has RGB values of (red = 100, green = 30blue = 80), the average of the three components is (100 + 30 + 80) /3 = 70, so that pixel becomes (red = 70, green = 70, blue = 70).

Drawing Panel Drawing Panel Eile View Help Eile View Help
Step by Step Solution
3.51 Rating (151 Votes )
There are 3 Steps involved in it
public static void grayscale Drawing Panel panel panelgetPixelsRGB int pixe... View full answer
Get step-by-step solutions from verified subject matter experts
