示例#1
0
文件: rgb.py 项目: 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)
示例#2
0
文件: rgb.py 项目: varshithr/pixrezol
 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
文件: rgb.py 项目: 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)
示例#5
0
文件: rgb.py 项目: MechanisM/thumbor
 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
文件: rgb.py 项目: cezarsa/thumbor
 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
文件: rgb.py 项目: rahbirul/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)
示例#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)