screenDataPnt is (screenWidth * screenHeigth * 4) which in my case is 640*480*4
My data is stored in BGRA, so that part is correct.Your image data is stored in BGRA format? I think you want to swap the bytes you read for B and R in the for loop.