示例#1
0
 def noise(self, amount, seed=0):
     mode, data = self.engine.image_data_as_rgb()
     imgdata = _noise.apply(mode, amount, data, seed)
     self.engine.set_image_data(imgdata)
示例#2
0
 def noise(self, amount):
     imgdata = _noise.apply(self.engine.get_image_mode(), amount,
                            self.engine.get_image_data())
     self.engine.set_image_data(imgdata)
示例#3
0
 def noise(self, amount):
     mode, data = self.engine.image_data_as_rgb()
     imgdata = _noise.apply(mode, amount, data)
     self.engine.set_image_data(imgdata)
示例#4
0
文件: noise.py 项目: Hazer/thumbor
 def noise(self, amount):
     imgdata = _noise.apply(self.engine.get_image_mode(), amount, self.engine.get_image_data())
     self.engine.set_image_data(imgdata)
示例#5
0
 def run_filter(self):
     imgdata = _noise.apply(self.engine.get_image_mode(), int(self.params['amount']), self.engine.get_image_data())
     self.engine.set_image_data(imgdata)