Talk About Network

Google





Graphics > OpenGL 3D API > Re: Modify scre...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 11 Topic 4774 of 5061
Post > Topic >>

Re: Modify screen pixels

by Jonno <jonno@[EMAIL PROTECTED] > Jun 3, 2008 at 08:59 AM

navid_ad wrote:
> I'm doing a research and I need to change RGB value of some pixels on
> screen runtime. As far as I know, glGet/SetPixel() just have access to
> the current application framebuffer but not the whole screen, but I
> need to be able to change any pixel on screen even the ones that
> belong to other applications.

There is no glGetPixel or glSetPixel in OpenGL.
Windows API has GetPixel and SetPixel, and these (like all Windows GDI 
functions) can draw to anywhere on the screen, including other programs' 
windows. But if you do this, the other programs will overwrite your 
pixels the next time they redraw.
To avoid this, you can capture the current screen to a bitmap, draw this 
on a fullscreen window, and then draw over it. You can use OpenGL to do 
the drawing, but not the screen grab.
 




 11 Posts in Topic:
Modify screen pixels
navid_ad <navid.fallah  2008-06-02 15:42:44 
Re: Modify screen pixels
"jbwest" <jb  2008-06-02 19:19:43 
Re: Modify screen pixels
Jonno <jonno@[EMAIL PR  2008-06-03 08:59:21 
Re: Modify screen pixels
fungus <openglMYSOCKS@  2008-06-03 01:23:27 
Re: Modify screen pixels
"jbwest" <jb  2008-06-03 17:55:10 
Re: Modify screen pixels
navid_ad <navid.fallah  2008-06-10 10:14:40 
Re: Modify screen pixels
aku ankka <jukka@[EMAI  2008-06-11 02:07:37 
Re: Modify screen pixels
navid_ad <navid.fallah  2008-06-11 17:00:18 
Re: Modify screen pixels
navid_ad <navid.fallah  2008-06-11 17:00:28 
Re: Modify screen pixels
navid_ad <navid.fallah  2008-06-15 14:56:20 
Re: Modify screen pixels
Paul Geisler <paul.gei  2008-06-27 02:16:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 16:48:37 PST 2009.