What does the following image processing function do? void process (int& blue, int& green, int& red) { } blue = 255 - blue; green = 255 green; red = 255 - red; -

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter16: Graphics
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question
What does the following image processing function do?
void process (int& blue, int& green, int& red)
{
}
blue = 255
blue;
green = 255 - green;
red
= 255
red;
-
Darkens the pixel colors by half
Lightens the pixel colors by half
Produces a photographic negative effect
Produces no changes
Transcribed Image Text:What does the following image processing function do? void process (int& blue, int& green, int& red) { } blue = 255 blue; green = 255 - green; red = 255 red; - Darkens the pixel colors by half Lightens the pixel colors by half Produces a photographic negative effect Produces no changes
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning