是否可以在此处为背景图像设置滤镜?

Is it possible to set a filter to a background image here?

我需要对我的背景图像应用滤镜,理想情况下,我想在添加它的地方执行此操作,而无需更改太多现有代码。这个函数里面有可能吗?

canvas.setBackgroundImage(image_library_selected_url, function() {
    canvas.renderAll();
    _canvasBrowser_update();
});

不是真的,但这个有效

if(requiresFilters) {
    fabric.Image.fromURL(image_library_selected_url, (function(image){
      image.filters.push(grayscale);
      image.filters.push(tint);
      image.applyFilters((function(){
        this.canvas.backgroundImage = image.getElement();
        this.canvas.renderAll();
      }).bind(this));
    }).bind(this));
} else {
    canvas.setBackgroundImage(image_library_selected_url, function() {
        canvas.renderAll();
        _canvasBrowser_update();
    });                     
}