var imgBoxInner = new cc.Node('imgBoxInner');
var mask = imgBoxInner.addComponent(cc.Mask);
mask.alphaThreshold = 0.1;
var newframe = new cc.SpriteFrame(texture);
mask.spriteFrame = newframe;
mask.type = cc.Mask.Type.IMAGE_STENCIL;
var sf = mask.spriteFrame;
//距离上下左右
sf.insetLeft = 100;
sf.insetTop = 196;
sf.insetRight = 100;
sf.insetBottom = 196;