Search code examples
iphoneopengl-eseaglview

Can I get the color of the pixel at a Touch Point on an EAGLView


I want to get the color of the Pixel at a specific Touch Point on an EAGLView. Is this possible, and if so, how?


Solution

  • You should be able to get the raw bitmap data using something similar to what is used in this question. From there, you can extract the byte values for the color elements at the point the touch occurred.