Question: Create an app that modifies a BMP file from its original full color image to a sepia version The program must do the following ask
Create an app that modifies a BMP file from its original full color image to a sepia version The program must do the following ask the user for a filename and open that BMP file. print a summary of the file header and DIB header information found One opened, manipulate each pixel by converting the original blue, red, and green values to sepia values using the formulas below new Red = 0.393*R + 0.769*G+ 0.189*B new Green = 0.349*R + 0.686*G+ 0.168*B newBlue = 0.272*R + 0.534*G+ 0.131*B If any of these output values is greater than 255, set it t to 255. don't use special java library for BMP image manipulation. have all source files: BMPEditor.java make sure classes are not in a package Required Main Class : BMPEditor Required Input: The filename of a BMP file. Required Output: should look like the follionwg (file will be modified) Filename: simplepicture.bmp File HeaderField: 0x424d (BMP File) Size: 2,394,054 bytes Reserve 1: 0x00 Reserve 2: Ox00 Offset: 54 DIB dibHeaderSize: 40 bytes Picture Width: 1,400 pixels Picture Height: 570 pixels # Color Planes: 256 Color Depth: 6,144 colors Compression: 0 Image Size: 0 pixels Horiz. Res. : 3,780 pixels/meter Vert. Res.: 3,780 pixels/meter Colors in Pale tte: 0 # Important Colors: 0
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
