Question: Please help fix my code. I am wishing to create a method that transforms the image, or any image, into grayscale using 30%, 59%, and

Please help fix my code. I am wishing to create a method that transforms the image, or any image, into grayscale using 30%, 59%, and 11% to convert the pixel values. Right now, I am getting a green tint, instead of gray. Please provide a repaired java code that correctly converts to grayscale.Please help fix my code. I am wishing to create a methodthat transforms the image, or any image, into grayscale using 30%, 59%,and 11% to convert the pixel values. Right now, I am getting

public void filter(PixeLImage theImage) l // get the data from the image Pixelll data - theImage.getData); //for each pixel multiply the color value for each red green and blue by //to make the image gray for (int row = 0; row

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!