109110111112113114115116117118
* */ public void setRGB(int r, int g, int b) { invalidateRaw(); if (imgInfo.greyscale || imgInfo.indexed) throw new PngjException("only rgb or rgba images support this"); red = r; green = g; blue = b; }