I am using the cocos2d-x v3.8.1.
I have tried this code to get the pixels value of a png picture,but got empty data.
Image * img = new Image();
img->initWithImageFile(mCurrentPictureDiffName);
unsigned char *data = img->getData();
Anybody can help me?