Set the red channel of the pixel, or the index value for palette images.
void setPixelR(int x, int y, num i);