Change Contents of the Bubble
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Midterm Exam 1 Review-Spring 2007: What do they do?

Back to Midterm Exam 1 Review-Spring 2007

Questions? Answers? Comments?

A negates the picture, B negates the right half of the picture, C negates the top half of the picture
B does negate the right half because it starts in the middle of the picture and continues going to the right while negating the pixels. Isn't the same true for C because it starts the height at half and starts down the picture and negates the bottom half?
Never mind the comment above. B is setting the this.getwidth() to the mid point of the picture and then saying for y this.getwidth(), so that would mean that it is supposes to negate all the pixels up until the half way point in the picture. That being the left side of the picture. C is y this.getHeight()/2, thus it is the top half of the picture. Dawn is that correct?
A negates the entire picture
B negates the right half
C negates the top half
-Student527

B negates the right half of the picture because its x values start from the middle of the picture (getWidth()/2) and goes to the end (getWidth()).

why would you even run methods B and C....they are commented out...so by running what isn't commented out only method A would run



Link to this Page