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 7 of 11 Topic 4774 of 5061
Post > Topic >>

Re: Modify screen pixels

by aku ankka <jukka@[EMAIL PROTECTED] > Jun 11, 2008 at 02:07 AM

On Jun 10, 8:14=A0pm, navid_ad <navid.fal...@[EMAIL PROTECTED]
> wrote:
> Thanks eceryone for your help, I figured it out half way. First of
> all, I decided to get it to work just on Windows
> for right now, I tried getPixel and setPixel in a loop to read and
> write all the pixels to/from a buffer,
> it works but it is just too slow. It takes 6 seconds to read all
> pixels and 3 seconds to write them.
> Now I'm using GetDIBits to capture a screenshot to a buffer which is
> very fast and I can even
> save it to a bitmap file. and I can change colors in buffer. The part
> that I couldn't get it to work is
> the SetDIBits which is suppose to show the buffer on screen.
>
> On Jun 3, 5:55 pm, "jbwest" <jbw...@[EMAIL PROTECTED]
> wrote:
>
>
>
> > "fungus" <openglMYSO...@[EMAIL PROTECTED]
> wrote in message
>
>
>news:9f7d5e71-68cc-41e2-84d7-d7e0b02462c2@[EMAIL PROTECTED]
>
> > > On Jun 3, 9:59 am, Jonno <jo...@[EMAIL PROTECTED]
> wrote:
> > >> There is no glGetPixel or glSetPixel in OpenGL.
> > >> Windows API has GetPixel and SetPixel, and these (like all Windows
GD=
I
> > >> functions) can draw to anywhere on thescreen, including other
program=
s'
> > >> windows. But if you do this, the other programs will overwrite your
> > >> pixels the next time they redraw.
>
> > > I'm not sure even this works any more on Windows Vista.
>
> > > --
> > > <\___/>
> > > / O O \
> > > \_____/ =A0FTB. =A0 =A0 Remove my socks for email address.
>
> > Even if it did (a similar grab can be done in X11) its not quite what
wa=
s
> > asked for.
> > If anything on thescreenis changing in any way, this snap & replace
> > approach won't be right.
> > You'd have to snap & replace at refresh rate to make it "right" --
tough=
 to
> > do.
>
> > jbw- Hide quoted text -
>
> - Show quoted text -

More im****tant question is what you trying to do with this.. it could
be that
_this_ question becomes irrelevant if better means are found to do
what ever it is you are doing.
 




 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 15:18:38 PST 2009.