Пример #1
0
 def rgb(self, r, g, b):
     mode, data = self.engine.image_data_as_rgb()
     imgdata = _rgb.apply(mode, r, g, b, data)
     self.engine.set_image_data(imgdata)
Пример #2
0
 def rgb(self, r, g, b):
     mode, data = self.engine.image_data_as_rgb()
     imgdata = _rgb.apply(mode, r, g, b, data)
     self.engine.set_image_data(imgdata)
Пример #3
0
 async def rgb(self, red, green, blue):
     mode, data = self.engine.image_data_as_rgb()
     imgdata = _rgb.apply(mode, red, green, blue, data)
     self.engine.set_image_data(imgdata)
Пример #4
0
 def rgb(self, r, g, b):
     imgdata = _rgb.apply(self.engine.get_image_mode(), r, g, b, self.engine.get_image_data())
     self.engine.set_image_data(imgdata)
Пример #5
0
 def run_filter(self):
     imgdata = _rgb.apply(self.engine.get_image_mode(), int(self.params['r']), int(self.params['g']), int(self.params['b']), self.engine.get_image_data())
     self.engine.set_image_data(imgdata)
Пример #6
0
 def run_filter(self, imgdata):
     return _rgb.apply(self.engine.get_image_mode(), int(self.params['r']), int(self.params['g']), int(self.params['b']), imgdata)
Пример #7
0
 def rgb(self, r, g, b):
     imgdata = _rgb.apply(self.engine.get_image_mode(), r, g, b,
                          self.engine.get_image_data())
     self.engine.set_image_data(imgdata)
Пример #8
0
 def run_filter(self):
     imgdata = _rgb.apply(self.engine.get_image_mode(),
                          int(self.params['r']), int(self.params['g']),
                          int(self.params['b']),
                          self.engine.get_image_data())
     self.engine.set_image_data(imgdata)