def contrast(self, value): mode, data = self.engine.image_data_as_rgb() imgdata = _contrast.apply(mode, value, data) self.engine.set_image_data(imgdata)
def contrast(self, value): imgdata = _contrast.apply(self.engine.get_image_mode(), value, self.engine.get_image_data()) self.engine.set_image_data(imgdata)
def run_filter(self): imgdata = _contrast.apply(self.engine.get_image_mode(), int(self.params['value']), self.engine.get_image_data()) self.engine.set_image_data(imgdata)