package com.marshalchen.common.uimodule.imageprocessing.filter.colour; /** * A exposure filter extension of RGBFilter. * This filter creates the exposure effect by multiply red, green and blue values of each pixel * by 2^(exposure value). The alpha value of the input image is untouched. * @author Chris Batt */ public class ExposureFilter extends RGBFilter { /** * Creates a ImageExposureFilter with the given adjustment to exposure. * @param exposure * The amount of exposure. */ public ExposureFilter(float exposure) { super((float)Math.pow(2.0, exposure), (float)Math.pow(2.0, exposure), (float)Math.pow(2.0, exposure)); } }