MP4: PixelEffects.java

resize

Resize a picture (2D int array) to a given width or height, or to the same width, height of a another array. The new picture may be larger or smaller than the original.

half

Halve the size of the picture. Create a new array of half the width and height, and populate accordingly.

merge

Independently merge the red values of the source and background, the green and the blue. The output should be the same size as the input. Scale (x,y) values when reading the background (e.g. the far right pixel of the source should be merged with the far-right pixel of the background).

rotate

Rotate the picture counterclockwise.

flip

Flip the picture vertically, along a horizontal axis.

mirror

Mirror the picture along a vertical axis.

chromakey

Perform a chroma key assuming a green background. If the image has a different size than the background, use the resize() method to change it to be equal to the background size.

funky

Create something novel and interesting (you need to decide what it should be).