xhmf

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);
        }

分类:

技术点:

相关文章:

  • 2021-11-30
  • 2021-11-18
  • 2021-11-18
  • 2021-11-18
  • 2021-07-25
  • 2021-08-15
  • 2021-07-14
  • 2021-11-18
猜你喜欢
  • 2021-05-14
  • 2021-11-18
  • 2021-11-18
  • 2021-04-29
  • 2022-12-23
  • 2022-01-08
相关资源
相似解决方案