Wow! Thank you very much! But I think I discovered an error in your optimization in the following line of code (call me an idiot if I'm wrong):
Code:matrixImage.applyFilter(matrixImage, matrixImage.rect, point0, colorMatrix);That was the reason why I created a third bitmapData-object to bypass this problem.( from adobe docs for BitmapData.applyFilter() http://help.adobe.com/en_US/FlashPla...ml#applyFilter)
If the BitmapData object and the object specified as the sourceBitmapData parameter are the same object, the application uses a temporary copy of the object to perform the filter. For best performance, avoid this situation.




Reply With Quote