/** * Sets a pixel to a given value */ public final boolean setPixel(int pix, int x, int y) { pixel[y*width+x] = pix; return true; }