BitmapData.applyFilter doesn't work in HTML5


#1

Hello!
BitmapData.applyFilter function doesn’t work in OpenFL at all, because the important input parameter “sourceBitmapData:BitmapData” just never used in this function.
I change

var lastBitmap = filter.__applyFilter (bitmapData2, this, sourceRect, destPoint);

to

var lastBitmap = filter.__applyFilter (bitmapData2, sourceBitmapData, sourceRect, destPoint);

and now it works fine for some filters which i used, but I’m not sure that this is absolutely correct fix (for all types of filters), so need your opinion…


#2

Doesn’t anyone use the applyFilter? :thinking: I use this cheap (if apply once while preparing the scene) method all the time, both in 2D and in 3D (once before loading into a texture, in order to use the same image for different situations and environments). And method works fine with just correcting one typo :slight_smile:


#3

What filter are you using?


#4

ColorMatrixFilter, BlurFilter, for example…