as3.0 卷积矩阵

public function mytest() {
            // constructor code
            trace("123");
            myLoader = new Loader();
            img1 = "http://192.168.21.139:8080/flower.png";
            pickLink = new URLRequest(img1);
            myLoader.load(pickLink);
            init();
            myLoader.filters = [myconvmat];
            addChild(myLoader);
        }
        private function init() {

//矩阵  通过设置矩阵加入过滤器  实现不同效果
            mymatrix = [-1, -1, 0,
                        -1, 1, 1,
                        0, 1, 2];
            myconvmat = new ConvolutionFilter(3, 3, mymatrix);
        }

原文地址:https://www.cnblogs.com/xhmf/p/3880331.html