Class GammaCorrection
java.lang.Object
org.apache.commons.imaging.formats.png.GammaCorrection
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
correctARGB
(int pixel) int
correctSample
(int sample) private int
correctSample
(int sample, double srcGamma, double dstGamma)
-
Field Details
-
LOGGER
-
lookupTable
private final int[] lookupTable
-
-
Constructor Details
-
GammaCorrection
public GammaCorrection(double srcGamma, double dstGamma)
-
-
Method Details
-
correctSample
public int correctSample(int sample) -
correctARGB
public int correctARGB(int pixel) -
correctSample
private int correctSample(int sample, double srcGamma, double dstGamma)
-