Question: Using the Picture class from Worked Example 6.2, write a method: that superimposes two pictures, yielding a picture whose width and height are the larger
Using the Picture class from Worked Example 6.2, write a method:
![]()
that superimposes two pictures, yielding a picture whose width and height are the larger of the widths and heights of pic1 and pic2. In the area where both pictures have pixels, average the colors.
Data from worked example 6.2


![]()


••
public static Picture superimpose (Picture picl, Picture pic2)
Step by Step Solution
3.41 Rating (167 Votes )
There are 3 Steps involved in it
Based on the provided information you want to write a method that superimposes two pictures and averages the colors in the overlapping areas Here is h... View full answer
Get step-by-step solutions from verified subject matter experts
