Array limitations?
in
Programming Questions
•
5 months ago
I'm reading up on image/pixel manipulation and was running through some of the examples in
Processing: A Programming Handbook and I keep getting
ArrayIndexOutOfBoundsException: 10000 exceptions.
My eames101.jpg image is 101x101 pixels.
My eames101.jpg image is 101x101 pixels.
- PImage eames101 = loadImage("eames101.jpg");
int count = eames101.width * eames101.height;
eames101.loadPixels();
loadPixels();
for (int i = 0; i < count; i += 2) {
pixels[i] = eames101.pixels[i];
}
updatePixels();
Why am I getting that error?
1