Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
MikePembo951
Posts: 107
Registered: ‎02-15-2012
My Device: Blackberry Playbook 32GB

Check individual pixels

[ Edited ]

Hi,

I was wondering if it would be possible to check individual pixels on an EGLsurface (using opengles1.1) for a certain colour. This would done before swapping back and fron buffers of the surface.

 

Thanks,

Mike

 

edit: Possible use eglcopybuffer to a pixmap maybe??
could i use glreadpixels? (along with glreadbuffer but then it would need to be read BEFORE swapping buffers) 

Please use plain text.
BlackBerry Development Advisor (Retired)
mgoulet
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha

Re: Check individual pixels

Hmm I've never tried this myself - could be best to query an OpenGL-specific forum for something like this; It may be expensive to do at each frame but I don't see why is would not be possible;

 

Martin

 

Please use plain text.