Cash-back offer from April 14th to 21st, 2024: Get a flat 10% cash-back credited to your account for a minimum transaction of $50.Post Your Questions Today!

Question DetailsNormal
$ 18.00

CSCI 1302 Lab 3 | Complete Solution

Question posted by
Online Tutor Profile
request

CSCI 1302 Lab 3

 (100 points)

Question 1.

Write a method changeBlue(weight). Do not change any color of the pixels in the first half of a picture. For the second half, change blue value of each pixel by new blue=original blue * weight. For example, if a pixel has values (200,100,100) and weight is 0.5, then the new values will be (200,100,50). If the weight is 1.5, then the new values will be (200,100,150).

 

This is first half, do not change!

This is second half, change blue.

 

Question 2.

Write a method mirrorVertical(). The method  mirrors the left half of a picture to  the right half of the picture. For instance, the two pictures below show that the left one is the original picture, and the right one is the new picture.

Question 3.

Write a method copyPart(w,h). The method copies an upper left rectangle area in an image to its lower right area. w and h are width and height of the rectangle. In the figure below, |ab| is w and |ac| is h. We assume that 2*w is less than the picture’s width,  and 2*h is less than the picture’s height. That is, the source area and the destination area are not overlapped and w or h is not out of bound.

All methods need to be included in the file Picture.java. Once you are finished, recompile your Picture.java, and then test your methods in DrJava. You can use any picture to test your programs.

Available Answer
$ 18.00

[Solved] CSCI 1302 Lab 3 | Complete Solution

  • This Solution has been Purchased 2 time
  • Average Rating for this solution is A+
  • Submitted On 03 Oct, 2015 06:57:12
Answer posted by
Online Tutor Profile
solution
import java.awt.*; import java.awt.font.*; import java.awt.geom.*; import java.awt.image.BufferedImage; import java.text.*; /** * A class that...
Buy now to view the complete solution
Other Similar Questions
User Profile
AceTu...

CSCI 1302 Lab 3 | Complete Solution

Import java.awt.*; import java.awt.font.*; import java.awt.geom.*; import java.awt.image.BufferedImage; import java.text.*; /** * A class that represents a picture. This class inherits from SimplePicture and * allows the s...

The benefits of buying study notes from CourseMerits

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35