Results 1 to 2 of 2

Thread: Get Pixel

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Oregon
    Posts
    962
    I am using Get Pixel in a program that I will eventrury make into a screen saver. It works just fine until one of the "worms" hits the edge of the screen. When one hits, it always gives -1 as the return. The "worms" should wrap over to the other side of the screen. Anyone know why?

  2. #2
    Guest

    I think I know why...

    Is it possible you are trying to read a pixel which is "out" of screen? Or out of the picturebox/form? If this is the case, that's normal, since the GetPixel function returns "-1" if you try to read a pixel that does not exist.

    I hope that helps!

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