Image 纹理像素的遍历检查

RenderTexture * pRTex;
pRTex->begin();
visit();
pRTex->end();
Image* image = new Image();
image = pRTex->newImage(true);
unsigned char *data_ = image->getData();
如果屏幕如下:(0表示没有像素的部分 ,1表示有像素的部分)
000000000000000000000000000
000000000000000000000000000
000000000000000000000000000
000111111110000000000000000
000111111110000000000000000
000000000000000000000000000

那么1所表示的有像素部分 在data中的下标是:下面的①或② 或其他?

height ( width,height)
000000000000000000000000000
000000000000000000000000000
000000000000000000000000000
000111111110000000000000000
000111111110000000000000000
000000000000000000000000000
(0,0) width

height ( width,height )
000000000000000000000000000
000111111110000000000000000
000111111110000000000000000
000000000000000000000000000
000000000000000000000000000
000000000000000000000000000
(0,0) width

— Begin quote from ____

引用楼主ever_4于2015-11-12 18:27发表的 Image 纹理像素的遍历检查 :
RenderTexture * pRTex;
pRTex->begin();
visit();
pRTex->end();
Image* image = new Image();
http://www.cocoachina.com/bbs/job.php?action=topost&tid=331581&pid=tpc

— End quote

亲测结果:
如果屏幕如下:
00000000
00000000
04560000
01230000
00000000
那么在Image中遍历的下标对应如下:
00000000
01230000
04560000
00000000
00000000