filterCellEngine.setTransform(1, 0, 0, 1, 0, 0);
let myimage = filterCellEngine.getImageData(0, 0, filterCellElement.width, filterCellElement.height);
this.preprocessFilters(this.currentFilters);
let img = filterEngine.action({
identifier: this.filterIdentifier,
image: myimage,
filters: this.currentFilters,
})
if (img) {
filterCellEngine.globalCompositeOperation = 'source-over';
filterCellEngine.globalAlpha = 1;
filterCellEngine.setTransform(1, 0, 0, 1, 0, 0);
filterCellEngine.putImageData(img, 0, 0);
}
currentEngine.save();
currentEngine.setTransform(1, 0, 0, 1, 0, 0);
currentEngine.drawImage(filterCellElement, 0, 0);
currentEngine.restore();
return img;
};