   Getting RGB-values of pixels
  http://www.gametutorials.com/forum/topic.asp?TOPIC_ID=9278There you can see what I need to do. I''m mainly wondering how you guys do it? You can''t use getpixel() since it so slow. Do you all use openGL functions or bits? For getting rgbvalues of pixels i mean cause i''ve been needing to do that many times? Maybe I''m alone?   hmmm... globals suck! 
  And if the problem is too hard or boring to work from there could I just get some info on how to use bits for bitmaps or different functions that give me rgb-values of pixels except for getpixel()?   hmmm... globals suck! ;  Could any of you answer if you''ve ever modified pictures by getting colours values of the pixels and how you did it please?   hmmm... globals suck! ;  There is no fast way to get rgb/depth values from the screen when using OpenGL as far as I know.. There are however extensions if you need to save one of the buffers (eg depth/rgb) somewhere where it can copied back to the screen rapidly. I guess if you need to copy the rgb buffer.. to reblit.. I guess you could render the screen to a texture.. then put it on screen with a big quad. WGL_ARB_region_buffer I think is the extension for saving parts of the frame buffer for fast blitting back to the screen.OK.. I just read your other post and you are talking win32. Anyway... you can''t get the bits directly in win32... it is specifically disallowed to keep it device independant. If you need more direct access you have to use DirectX (probably directdraw at present.. but D3D/OpenGL are pretty good for 2D work as well, as long as your controls are per object rather than per pixel). If you don''t feel like messing with DirectDraw... (or even if you like that sort of thing) I strongly suggest you check out SDL. It provides a nice interface, and is cross platform, and will certainly give you the performance boost you are looking for (over GDI). ;  I''d prefer using openGL to achieve what im trying to achieve but did you understand what i wanted? i wanted to make a bot for the game in that other link.http://www2.2flashgames.com/n32h8s8u9a12n3/flash/f-178.swf<-- the gameMy idea was to get a screenshot of the screen and then work through the pixels to see where the ball is located and then position the mouse there...Any other ideas?And when it comes to a fast way in a tutorial on www.gametutorials.com someone is using bits of a bitmap to check rgbvalues which works very fast.Anyone knows how to use them?http://www.gametutorials.com/download/Win32/TileMaze_Win32.zip<-- in the function TransparentBlit   hmmm... globals suck! 