Click to See Complete Forum and Search --> : Get Pixel
Gaming_World
Nov 26th, 2000, 08:45 PM
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?
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!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.