//边缘发光
private applayFilter(): void {
//创建一个发光滤镜
var glowFilter: Laya.GlowFilter = new Laya.GlowFilter("#ffff00", 15, 0, 0);
//设置滤镜集合为发光滤镜
this.m_Img.filters = [glowFilter];
}
//模糊
private applayFilter2(): void {
var blurFilter: Laya.BlurFilter = new Laya.BlurFilter();
blurFilter.strength = 10;
this.m_Img.filters = [blurFilter];
}
laya 图片发光+模糊
最新推荐文章于 2024-09-10 21:36:44 发布