Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Argus

question - fastest way to get pixel info

This topic is 5937 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I was wondering what the fastest way to check what the colour of a pixel currently displayed on the screen was (eg. if I wanted to take a screenshot). EDIT : under Windows Also is it possible for me to get a pixel's colour before it is rendered (eg. pre-lighting and shading adjustments) ? [edited by - Argus on September 11, 2002 11:48:10 PM]

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Well, I guess you could use GetPixel() under windows (windows GDI function) but you would have to have a DC to the surface you are using.

If you were using pixel shaders, you could set the color buffer as a texture stage (provided you had pixel shader capabilities and enough texture stages)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!