forked from: Lanczos Resampling

more on
http://blog.yoz.sk/2010/11/lanczos-resampling-with-actionscript/