MCPcopy Create free account
hub / github.com/Tom94/tev / setGamma

Method setGamma

src/ImageViewer.cpp:2033–2039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2031}
2032
2033void ImageViewer::setGamma(float value) {
2034 value = round(value, 2.0f);
2035 mGammaSlider->set_value(value);
2036 mGammaLabel->set_caption(fmt::format("Gamma: {:+.2f}", value));
2037
2038 mImageCanvas->setGamma(value);
2039}
2040
2041void ImageViewer::setBrightnessLimit(float max) {
2042 max = round(max, 2.0f);

Callers 1

mainFuncFunction · 0.45

Calls 1

roundFunction · 0.85

Tested by

no test coverage detected