I'm trying to iterate through all the pixels and change their color. I know the way to do this is to make an array and then do something like this:
I don't know what type I should make the list. Is there a Pixel type?
Basically, what I need to know is what kind of list I need to make, how I can get a pixel at a location, and how I can set that pixel.
int width = 500;
int height = 500;
someType[] pixles = new someType[width*height];
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
n = j*width + i;
someType[n] = //however you get a pixel;
}
}

