var handBao=new MySprite(res.Bao_png);
//handBao.SetScale(0.5);
handBao.attr({
x:0,
y:size.height /3,
//width:10,
//height:20,
my_attr:0
});
//handBao.setScale(0.25); //这个可以,但只可按比例缩放
//handBao.setContentSize(cc.size(20, 20)); //这个不行
this.addChild(handBao, 1);
setScale是可以改变大小,但只可按比例缩放,有什么方法可按像素自定义大小?