HSLTransformer hT = new HSLTransformer();
hT.setHue(modHue);
hT.transformImage(img);
}
if (modSwapRGB != 0) {
SwapRGBTransformer sT = new SwapRGBTransformer();
int maxValues = Mode.values().length;
int idx = (int) ((double) Math.abs(modSwapRGB) / (double) 255.0 * (double) (maxValues - 1));
sT.setMode(Mode.values()[idx]);
sT.transformImage(img);
}
Pixel pixel = new Pixel();
for (int i = startIdx; i <= endIdx; i++) {
RGBColor color = transformedColors[i];
pixel.setARGBValue(img.getARGBValue(i, 0));