void onCurveChange() { // The color curve in the filter is the same refereced by the // editor. But anyway, we have to re-set the same curve in the // filter to regenerate the map used internally by the filter // (which is calculated inside setCurve() method). m_filter.setCurve(m_editor.getCurve()); restartPreview(); }
void onChange() { m_filter.setBrightness(m_brightness.getValue() / 100.0); m_filter.setContrast(m_contrast.getValue() / 100.0); restartPreview(); }
void onToChange(const app::Color& color) { m_filter.setTo(color); restartPreview(); }
void onToleranceChange() { m_filter.setTolerance(m_toleranceSlider->getValue()); restartPreview(); }
void onFromChange(const app::Color& color) { m_filter.setFrom(color); restartPreview(); }