I joined Java Ranch a few years ago, but took an extended break from programming (3 years, in fact... save for some MIPS, which might get a few chuckles) and I'm back at square one. I'm getting back into it, but hit a snag today while trying to manipulate pixels on a JPEG. Essentially, I'm just noodling around with a program that'll do various operations on an image of my choice, and I'm getting the following error when trying to invert an image's colours: "ArrayOutOfBoundsException: Coordinate Out Of Bounds!"
I've spent all day trying to fix this, and am getting nowhere. Spent a few hours on google, to no avail. Java has me by the balls.
This might be relevant: I'm using a GUI (JFrame and JPanel) with a few buttons to load the image, save it, etc. The image is loaded in the CENTRE region of the frame's BorderLayout. Would that affect the image's starting coordinate at all?