The Artima Developer Community
Sponsored Link

C# Answers Forum
pixel detection

1 reply on 1 page. Most recent reply: Apr 3, 2003 6:55 PM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
VVK

Posts: 1
Nickname: screaming
Registered: Apr, 2003

pixel detection Posted: Apr 3, 2003 12:02 PM
Reply to this message Reply
Advertisement
i need to know how to detect what the pixel is on X,Y of the screen. So it returns a color value. please help me.


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: pixel detection Posted: Apr 3, 2003 6:55 PM
Reply to this message Reply
This sounds more like a Windows API question than a C# question. Have a look at GetDesktopWindow(), GetWindowDC() and GetPixel().
COLORREF color = GetPixel( GetWindowDC(GetDesktopWindow()), x, y );

Flat View: This topic has 1 reply on 1 page
Topic: Problem with assembly for a sample app Previous Topic   Next Topic Topic: c answers

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use