Java program ASAP Redness Calculator Colors in image files have RGB values from 0 to 255. Create a GUI that calculates the degree of redness in a sample image, when its R value is compared to a...

Java program ASAP Redness Calculator Colors in image files have RGB values from 0 to 255. Create a GUI that calculates the degree of redness in a sample image, when its R value is compared to a standard image. For example, if a pixel on the standard image has a R value of 12, but the same pixel on the sample has an R value of 24, it is twice as red – or has a degree of redness of 200%. Note the number format of the degree text box and make sure you match it. If, however, the user enters an invalid value, an error message should appear as shown below: If the user enters a value outside the 0-255 range, raise a custom exception called ColorOutOfRangeException. This exception should display the message “One or both of the values are out of range.” Important notes: · Make sure your redness calculations are accurate · Make sure that you catch all errors, i.e., there should be no red text streaming to System.err · The first thing your action listener should do is to clear the error message, so that subsequent correct values do not appear to be in error.

May 24, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here