CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2003
    Location
    Oklahoma City, OK
    Posts
    63

    trying to get the color of pixel on screen

    I need to get the color of a single pixel on the screen. I have searched the helpfiles, and the internet for days. I am hoping for something similar in functionality to the GetPixel method of the Bitmap Class. if there are no built in functions in C# or ways to get around to do it. I have no reservations of writing my own class to do this, but I don't know how to access the screen at all. Please help.

  2. #2
    Join Date
    Feb 2003
    Location
    Oklahoma City, OK
    Posts
    63

    nevermind I got it

    figured it out

  3. #3
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    could you tell us atleast how did u figure out. a sample would be good.

    thanx
    Paresh

  4. #4
    Join Date
    Feb 2003
    Location
    Oklahoma City, OK
    Posts
    63

    it in the code on my other post

    I don't like the way I have to do it, it takes up more memory that way. I have to take a picture of the whole screen as a bitmap. through the classes in the graphics.cs file. (not mine I found them on the net ) . I knew that I could do it something like that, but I wanted to just get the pixel. oh well.

  5. #5
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    ya, that's nice idea though. working with screens' etc isn't it fun !!

    but sometimes debuging becomes to much hard specially in drag drop actions.

    Paresh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured