Egret社区

[Egret Engine] 图片加遮罩会变模糊

2019-2-26 15:32
9041
产品 Egret Engine 版本 5.2.14
复现概率 100% 平台 Android 9
复现步骤 图片加遮罩
问题描述 图片加遮罩就会变模糊,锯齿明显
错误代码 var lPlayerBg = this.createBitmapByName("playerBg_png");
this.addChild(lPlayerBg);
lPlayerBg.height = 80;
lPlayerBg.width = 160;
lPlayerBg.x = lPlayerBg.width * 0.18 * 5;
lPlayerBg.y = 100;

var headMask = this.createBitmapByName("headMask_png");
this.addChild(headMask);
headMask.height = lPlayerBg.height * 0.95;
headMask.width = headMask.height * 0.95;
headMask.x = lPlayerBg.x + lPlayerBg.width * 0.025;
headMask.y = lPlayerBg.y + lPlayerBg.height * 0.03;

var head = this.createBitmapByName("head_png");
this.addChild(head);
head.height = headMask.height;
head.width = headMask.width;
head.x = headMask.x
head.y = headMask.y
head.mask = headMask
BUG截图
本帖最后由 ck1129817363 于 2019-2-26 15:34 编辑

如题,求回应
5722ef74cbb7334744d7fb700466f47.jpg
295df51cad95d85c57711dc0af34fb1.jpg
分享到 :
0 人收藏

1 个回复

倒序浏览
ck1129817363  登堂入室 | 2019-2-26 15:43:29
两张图的区别就是,mask加遮罩
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|京网文[2014]0791-191号|京ICP证150115号|Egret社区 ( 京ICP备14025619号 )

Powered by Discuz! X3.4 © 2001-2019 Comsenz Inc.

返回顶部