|
-
Feb 16th, 2007, 03:07 AM
#1
Thread Starter
New Member
pixel color
i was wondering if there is a way to read the colors of pixels outside of the active form, assuming the form is not covering the wanted area of the screen?
-
Feb 16th, 2007, 09:07 AM
#2
Re: pixel color
Welcome to the forums. 
What do you mean by "outside of the active form"?
-
Feb 16th, 2007, 05:50 PM
#3
Re: pixel color
You can do that using various API calls. I'll leave it to someone more familiar with these to give an example. Perhaps a mod could move this to the API forum?
-
Feb 16th, 2007, 06:40 PM
#4
Addicted Member
Re: pixel color
Hey,
Is this what you are looking for?
declares:
Code:
Private Declare Function GetPixel Lib "gdi32" (ByVal Hdc As Long, ByVal x As Long, ByVal y As Long) As Long
Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Code:
MsgBox GetPixel(GetDC(0), 1, 1)'0 = handle of desktop
-
Feb 23rd, 2007, 03:53 AM
#5
Thread Starter
New Member
Re: pixel color
yeah its workin now thx
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
|