Jamal Nasar wrote:After compiling, when I try to run it, I get an ArrayIndexOutofBoundsException on the line:
Well, the only reason for that would be that either
pixels or
background.pixels has a length of 0; but since you haven't shown us how those are created, it's impossible to guess why.
My suggestion:
StopCoding and write down what you're trying to achieve.
Winston