Tag Info

New answers tagged

0

Something like this: public void addContrast(float Contrast) { byte[] contrast_lookup = new byte[256]; double newValue = 0; double c = (100.0 + Contrast) / 100.0; c *= c; for (int i = 0; i < 256; i++) { newValue = (double)i; newValue /= 255.0; newValue -= 0.5; newValue *= c; ...



Top 50 recent answers are included