Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C# please with screen shot Assignment3B: Image Color Dopth: In Assignment 1, we learned that each pixel of a computer image is represented with three
C# please with screen shot
Assignment3B: Image Color Dopth: In Assignment 1, we learned that each pixel of a computer image is represented with three values, RGB. Traditionally one byte is used for each color, meaning th each pixel takes up 3 bytes of space. These are known as 8 bits per color channel encoding, 8 BPC for short. More recently, encodings with larger ranges of color have become popular wi artists and photographers. Programs like Photoshop now support 16BPC and 32BPC encoding. For this assignment, you will try to determine the encoding of an RGB image based on its width height, and file size. After the user enters this information, you will first check if the information i valid. If not, you will notify the user and skip to the end of the program. (Hint: You will have to check multiple potential issues with your IF statements) If the detail is valid, you will then calculate the BPC encoding. Based on the value, you will use a Switch statement to print out if the image is 8,16 , or 32BPC. If it is outside the range, inform the user that your computer does not know how to read this encoding. You must call the class Assignment3B and put it in a file called "Assignment3B.java", "Assignment3B.cs", or "Assignment3B.cpp". Make sure to use Switch statements to complete this assignment - you will lose points if you do not. Sample output +1i [Image Encoding Checker] What is the image width? 10 What is the image height? 20 What is the file size (in bytes)? 200 the information is invalid - please re-enter it. Sample Qutput 12i [Image Encoding Checker] What is the image width? 10 What is the image height? 20 What is the filo 3120 (in bytes) ? 202 The intormation is invalid-please re-encer it. Sample output $3t (Image Encoding Checker) What is the image width? 50 What is the image height? 50 What is the tile size (in bytes)? 7500 The Ren lage is encoded with bits per channe1. Sample autput ist. (Image Encoding checker) What is the inage width? 100 What is the image height? 100 What is the file size (in bytes)? 60000 the RGB Image is encoded with 16 bies per channel Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started