Exemplo n.º 1
0
Arquivo: rgb.py Projeto: APSL/thumbor
 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 4
0
Arquivo: rgb.py Projeto: Hazer/thumbor
 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)