Context:
Calling increaseContrast subtracts 16 from pixels with 0 <= value <= 127 and adds 16 to pixels with 128 <= value <= MAXVAL. Do not allow pixel values to overflow MAXVAL or become negative, i.e. clamp the pixels to 0 when subtracting and MAXVAL when adding.
Method:
public void increaseContrast() {
}
Edit: I apologize for not specifying what I have written under the method, but I can't post my personal program/code because my university will penalize me for plagiarism.