How to get Sprite pixel alpha information in cocos2d js/c++
问题 I am working on a scratch and win game, I used clipper node for this. But I want to know the event when whole sprite is clippe? Is there any other way to know it, plz help me 回答1: I solved this issue by using following method:- I create one rendure texture and add an sprite on it. I found answer here:- http://discuss.cocos2d-x.org/t/render-texture-get-percentage-of-transparent/21123 here is the code:- var WINDOW_WIDTH = cc.director.getWinSize().width; var WINDOW_HEIGHT = cc.director