|
-
Apr 14th, 2000, 06:32 AM
#1
Thread Starter
Hyperactive Member
ok why doesnt GetPixel work half the time??
most of the time it returns -1 !
I've tried turning autoredraw (of the picbox im using) on and off, etc, and it still keeps returning -1 often. Sometimes it doesnt though ?)
help!
buzzwords are the language of fools
-
Apr 14th, 2000, 11:42 AM
#2
Addicted Member
-
Apr 14th, 2000, 05:41 PM
#3
Fanatic Member
Check your loops, you often get -1 if you go outside the area. This can happen if you hit the border of a form or if you have the form set to twips and loop to the edge of a control (in pixel count you'd be going way off the edge)
chuck some of the data to the imediate window and see where you're "GET"ing
-
Apr 14th, 2000, 06:57 PM
#4
I noticed that GetPixel also returns -1 if stepping through the code with F8. Set your breakpoint after GetPixel if your debugging.
-
Apr 15th, 2000, 01:28 AM
#5
Thread Starter
Hyperactive Member
it works now I think, thanks
buzzwords are the language of fools
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|